31 lines
671 B
YAML
31 lines
671 B
YAML
name: Generate Contribution Snake
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 */6 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Generate snake
|
|
uses: Platane/snk@v3.5.0
|
|
with:
|
|
github_user_name: excho0
|
|
outputs: |
|
|
dist/github-contribution-grid-snake.svg
|
|
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
|
|
|
|
- name: Push snake to output branch
|
|
uses: crazy-max/ghaction-github-pages@v4
|
|
with:
|
|
build_dir: dist
|
|
branch: output
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|