mirror of
https://github.com/Alvin-Zilverstand/Alvin-Zilverstand.git
synced 2026-03-06 02:46:58 +01:00
Add GitHub workflows for generating metrics and contribution snake
This commit is contained in:
22
.github/workflows/metrics.yml
vendored
Normal file
22
.github/workflows/metrics.yml
vendored
Normal 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
24
.github/workflows/snake.yml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user