Skip to content

Commit ca8cc81

Browse files
snake
1 parent c0858ea commit ca8cc81

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/snake.yml

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

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)