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- ` ` ` yaml
2- name: Generate Snake Animation
1+ name : Generate Snake
32
3+ # Controls when the action will run
44on :
5+ # Triggers the workflow on schedule (every 6 hours)
56 schedule :
6- - cron: "0 */12 * * *" # every 12 hours
7+ - cron : " 0 */6 * * *"
8+
9+ # Allows you to run this workflow manually
710 workflow_dispatch :
811
12+ # A workflow run is made up of one or more jobs
913jobs :
10- build :
14+ generate :
1115 runs-on : ubuntu-latest
12-
16+ timeout-minutes : 10
17+
1318 steps :
14- - uses: actions/checkout@v2
15-
16- - uses: Platane/snk@master
17- id: snake-gif
19+ # Step 1: Checkout repository
20+ - name : Checkout
21+ uses : actions/checkout@v3
22+
23+ # Step 2: Generate the snake files
24+ - name : Generate github-contribution-grid-snake.svg
25+ uses : Platane/snk/svg-only@v3
1826 with :
1927 github_user_name : Codealpha07
20- svg_out_path: dist/github-contribution-grid-snake.svg
21- snake_color: 'blue'
28+ outputs : |
29+ dist/github-contribution-grid-snake.svg
30+ dist/github-contribution-grid-snake-dark.svg?palette=github-dark
2231
23- - uses: crazy-max/ghaction-github-pages@v2.1.3
32+ # Step 3: Push the content to the output branch
33+ - name : Push github-contribution-grid-snake.svg to the output branch
34+ uses : crazy-max/ghaction-github-pages@v3.1.0
2435 with :
2536 target_branch : output
2637 build_dir : dist
2738 env :
2839 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29- ` ` `
You can’t perform that action at this time.
0 commit comments