Skip to content

Commit 7aab83d

Browse files
authored
Update snake.yml
1 parent 10c968b commit 7aab83d

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

.github/workflows/snake.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,16 @@
1-
name: generate animation
1+
name: generate-snake
22

33
on:
4-
# run automatically every 24 hours
54
schedule:
6-
- cron: "0 */24 * * *"
7-
8-
# allows to manually run the job at any time
5+
- cron: "0 0 * * *"
96
workflow_dispatch:
10-
11-
# run on every push on the master branch
12-
push:
13-
branches:
14-
- master
15-
16-
177

188
jobs:
19-
generate:
20-
permissions:
21-
contents: write
9+
build:
2210
runs-on: ubuntu-latest
23-
timeout-minutes: 5
24-
2511
steps:
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
28-
uses: Platane/snk/svg-only@v3
12+
- uses: Platane/snk@v3
2913
with:
3014
github_user_name: ${{ github.repository_owner }}
3115
outputs: |
32-
dist/github-contribution-grid-snake.svg
33-
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
37-
38-
# push the content of <build_dir> to a branch
39-
# the content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/<target_branch>/<file> , or as github page
40-
- name: push github-contribution-grid-snake.svg to the output branch
41-
uses: crazy-max/[email protected]
42-
with:
43-
target_branch: output
44-
build_dir: dist
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
dist/github-snake.svg?color_snake=#D71921&color_dots=#1B1B1D,#333333,#666666,#999999,#FFFFFF

0 commit comments

Comments
 (0)