File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed
Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change 1- name : Generate snake animation
1+ name : generate animation
22
33on :
4- schedule : # execute every 12 hours
5- - cron : " * */12 * * *"
6-
4+ # run automatically every 24 hours
5+ schedule :
6+ - cron : " 0 */24 * * *"
7+
8+ # allows to manually run the job at any time
79 workflow_dispatch :
8-
10+
11+ # run on every push on the master branch
912 push :
1013 branches :
1114 - master
15+
16+
1217
1318jobs :
1419 generate :
15- permissions :
20+ permissions :
1621 contents : write
1722 runs-on : ubuntu-latest
1823 timeout-minutes : 5
19-
24+
2025 steps :
21- - name : generate snake.svg
26+ # generates a snake game from a github user (<github_user_name>) contributions graph, output a svg animation at <svg_out_path>
27+ - name : generate github-contribution-grid-snake.svg
2228 uses : Platane/snk/svg-only@v3
2329 with :
2430 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
31+ outputs : |
32+ dist/github-contribution-grid-snake.svg
33+ dist/github-contribution-grid-snake-dark.svg?palette=github-dark
34+
35+
36+ # push the content of <build_dir> to a branch
37+ # the content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/<target_branch>/<file> , or as github page
38+ - name : push github-contribution-grid-snake.svg to the output branch
2939 uses : crazy-max/ghaction-github-pages@v3.1.0
3040 with :
3141 target_branch : output
You can’t perform that action at this time.
0 commit comments