Generate Animation #213
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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' |