Add GitHub workflows for generating metrics and contribution snake

This commit is contained in:
Alvin
2025-09-16 10:01:59 +02:00
parent 62f3b63b06
commit b5ceff500f
2 changed files with 46 additions and 0 deletions

24
.github/workflows/snake.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Generate Contribution Snake
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
workflow_dispatch: # Allow manual runs
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: Platane/snk@v3
with:
github_user_name: Alvin-Zilverstand
outputs: dist/snake.svg
- name: Push Snake to output branch
uses: EndBug/add-and-commit@v9
with:
branch: output
message: "chore: update snake animation"
add: "dist/snake.svg"