File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name: Generate Snake Animation π
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master # or main, depending on your default branch
7
+ schedule:
8
+ - cron: "0 0 * * * " # Runs once daily at midnight
9
+
10
+ jobs:
11
+ generate-snake:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: β
Checkout repository
15
+ uses: actions/checkout@v3
16
+
17
+ - name: π Generate snake animation
18
+ uses: Platane/snk@v2
19
+ with:
20
+ github_user_name: coderpheonix # Replace with your GitHub username
21
+ svg_out_path: dist/github-contribution-grid-snake.svg
22
+ output_format: svg
23
+
24
+ - name: π Upload the snake animation
25
+ uses: actions/upload-artifact@v3
26
+ with:
27
+ name: snake-animation
28
+ path: dist/github-contribution-grid-snake.svg
29
+
30
+ - name: π Commit snake animation to branch
31
+ if: success()
32
+ run: |
33
+ git config --global user.name "GitHub Actions Bot"
34
+ git config --global user.email "actions@github.com"
35
+ git add dist/github-contribution-grid-snake.svg
36
+ git commit -m "π Update snake animation [skip ci]"
37
+ git push
You canβt perform that action at this time.
0 commit comments