|
|
π‘ To get YOUR own snake: Add the GitHub Action below to your profile repo.
π Click to copy the Snake GitHub Action
# .github/workflows/snake.yml
name: Generate Snake Animation
on:
schedule:
- cron: "0 0 * * *" # runs daily at midnight
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
- uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Then replace the snake src URLs with:
https://raw.githubusercontent.com/YOUR_USERNAME/YOUR_USERNAME/output/github-contribution-grid-snake-dark.svg



