Generate Snake Animation #233
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
| name: Generate Snake Animation | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Every day at midnight UTC | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout your repo so Git works | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| # Step 2: Generate the snake animation | |
| - name: Generate the snake animation | |
| uses: Platane/snk@v3 | |
| with: | |
| github_user_name: alihm961 | |
| outputs: | | |
| ./output/github-contribution-grid-snake.svg | |
| # Step 3: Commit and push the generated file | |
| - name: Push the generated files | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| author_name: GitHub Action | |
| author_email: [email protected] | |
| message: "Generate contribution snake" | |
| add: "./output/github-contribution-grid-snake.svg" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |