Skip to content

Generate Snake Contribution Graph #903

Generate Snake Contribution Graph

Generate Snake Contribution Graph #903

name: Generate Snake Contribution Graph
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Generate the snake files in './dist/'
uses: Platane/snk@v3
id: snake-gif
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show build status
run: git status
- name: Push new files to the output branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
commit_message: Update snake animations
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}