We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed6fbe commit 2a87450Copy full SHA for 2a87450
github/workflows/snack.yml
@@ -0,0 +1,31 @@
1
+name: Generate snake animation
2
+
3
+on:
4
+ schedule: # execute every 12 hours
5
+ - cron: "* */12 * * *"
6
7
+ workflow_dispatch:
8
9
+ push:
10
+ branches:
11
+ - master
12
13
+jobs:
14
+ generate:
15
+ runs-on: ubuntu-latest
16
17
+ steps:
18
+ - name: generate snake.svg
19
+ uses: Platane/snk/svg-only@v2
20
+ with:
21
+ github_user_name: ${{ github.repository_owner }}
22
+ outputs: dist/snake.svg
23
24
25
+ - name: push snake.svg to the output branch
26
+ uses: crazy-max/ghaction-github-pages@v2.6.0
27
28
+ target_branch: output
29
+ build_dir: dist
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments