File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Generate Datas
1+ name : generate animation
2+
23on :
3- schedule : # execute every 12 hours
4- - cron : " */12 * * * *"
4+
5+ schedule :
6+ - cron : " 0 */12 * * *"
7+
8+
59 workflow_dispatch :
10+
11+
12+ push :
13+ branches :
14+ - main
15+
616jobs :
7- build :
8- name : Jobs to update datas
17+ generate :
918 runs-on : ubuntu-latest
19+ timeout-minutes : 10
20+
1021 steps :
11- # Snake Animation
12- - uses : Platane/snk@master
13- id : snake-gif
22+
23+ - name : generate github-contribution-grid-snake.svg
24+ uses : Platane/snk/svg-only@v3
1425 with :
15- github_user_name : VCGithubCode
16- svg_out_path : dist/github-contribution-grid-snake.svg
17-
18- - uses : crazy-max/ghaction-github-pages@v3.1.0
26+ github_user_name : ${{ github.repository_owner }}
27+ outputs : |
28+ dist/github-contribution-grid-snake.svg
29+ dist/github-contribution-grid-snake-dark.svg?palette=github-dark
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+
33+
34+
35+
36+ - name : push github-contribution-grid-snake.svg to the output branch
37+ uses : crazy-max/ghaction-github-pages@v3.1.0
1938 with :
2039 target_branch : output
2140 build_dir : dist
2241 env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments