-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 873 Bytes
/
Copy pathgenerate-example.yml
File metadata and controls
38 lines (33 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Generate Example
on:
push:
branches:
- main
jobs:
generate-example:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run the server
run: |
go run . &
- name: Wait for the server
run: |
until curl -s http://localhost:8080/ > /dev/null 2>&1; do
sleep 1
done
- name: Generate the example
run: |
curl http://localhost:8080/?options=Red,Green,Blue\&target=0\&fps=24\&duration=5 > example.gif
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: "example.gif"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}