Create .github/workflows/snake.yml
:
name: Generate Snake
on:
schedule:
- cron: "0 */12 * * *" # Runs every 12 hours
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: generate github-contribution-grid-snake.svg
uses: Platane/snk/svg-only@v3
with:
github_user_name: JasonTeixeira
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
- name: push github-contribution-grid-snake.svg to the output branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Create .github/workflows/update-stats.yml
:
name: Update Stats
on:
schedule:
- cron: "0 0 * * *" # Daily at midnight
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Stats
run: echo "Stats auto-update triggered"