Skip to content

Generate Animation #213

Generate Animation

Generate Animation #213

Workflow file for this run

# GitHub Action for generating a contribution graph with a snake eating your contributions.
name: Generate Animation
on:
# run automatically every 12 hours
schedule:
- cron: "30 8,23 * * *"
# allows to manually run the job at any time
workflow_dispatch:
# 推送时重新运行程序
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Snake
uses: Platane/snk@v3
id: snake-animation
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
./assets/github-contribution-grid-snake.gif
./assets/github-contribution-grid-snake.svg
./assets/github-contribution-grid-snake-dark.svg?palette=github-dark
- name: Push to GitHub
uses: EndBug/add-and-commit@v9
with:
message: 'Generate Github contribution heatmap animation'