File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate Snake Animation
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * *" # Runs daily at midnight
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Generate GitHub Contribution Snake
13+ uses : Platane/snk@v3
14+ with :
15+ github_user_name : ${{ github.repository_owner }}
16+ outputs : |
17+ dist/github-snake.svg
18+ dist/github-snake-dark.svg?palette=github-dark
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+
22+ - name : Push to Output Branch
23+ uses : crazy-max/ghaction-github-pages@v3.1.0
24+ with :
25+ target_branch : output
26+ build_dir : dist
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -48,3 +48,10 @@ class Attributes(CodeWithInferno):
4848
4949 return langs, specialities, ide, pc
5050```
51+ ## 🐍 Contribution Snake
52+
53+ <picture >
54+ <source media =" (prefers-color-scheme: dark) " srcset =" https://raw.githubusercontent.com/CodeWithInferno/CodeWithInferno/output/github-snake-dark.svg " />
55+ <source media =" (prefers-color-scheme: light) " srcset =" https://raw.githubusercontent.com/CodeWithInferno/CodeWithInferno/output/github-snake.svg " />
56+ <img alt =" GitHub Contribution Snake " src =" https://raw.githubusercontent.com/CodeWithInferno/CodeWithInferno/output/github-snake.svg " />
57+ </picture >
You can’t perform that action at this time.
0 commit comments