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 3811beb commit b93c09fCopy full SHA for b93c09f
snake.yml
@@ -0,0 +1,34 @@
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
+ permissions:
16
+ contents: write
17
+ runs-on: ubuntu-latest
18
+ timeout-minutes: 5
19
20
+ steps:
21
+ - name: generate snake.svg
22
+ uses: Platane/snk/svg-only@v3
23
+ with:
24
+ github_user_name: ${{ github.repository_owner }}
25
+ outputs: dist/snake.svg?palette=github-dark
26
27
28
+ - name: push snake.svg to the output branch
29
+ uses: crazy-max/ghaction-github-pages@v3.1.0
30
31
+ target_branch: output
32
+ build_dir: dist
33
+ env:
34
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments