Skip to content

Commit 3741c95

Browse files
authored
Create README.md
1 parent 553b3d7 commit 3741c95

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

β€Žsnake-animation/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
Β (0)