Skip to content

Commit 22d8457

Browse files
authored
Update snake.yml
1 parent 9d4fc7f commit 22d8457

1 file changed

Lines changed: 23 additions & 13 deletions

File tree

.github/workflows/snake.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
1-
```yaml
2-
name: Generate Snake Animation
1+
name: Generate Snake
32

3+
# Controls when the action will run
44
on:
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
913
jobs:
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-
```

0 commit comments

Comments
 (0)