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

22
.github/workflows/metrics.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Generate GitHub Metrics
on:
schedule:
- cron: "0 0 * * 0" # Runs every Sunday
workflow_dispatch: # Allow manual runs
jobs:
github-metrics:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
token: ${{ secrets.METRICS_TOKEN }}
user: Alvin-Zilverstand
template: classic
base: header, activity, community, repositories, metadata
config_timezone: Europe/Amsterdam
# 📅 Isometric commit calendar
plugin_isocalendar: yes
plugin_isocalendar_duration: full-year

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"