Generate Snake #69
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 | |
| on: | |
| schedule: | |
| - cron: "0 */12 * * *" # runs every 12 hours automatically | |
| workflow_dispatch: # lets you run it manually too | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: generate snake.svg | |
| uses: Platane/snk/svg-only@v3 | |
| with: | |
| github_user_name: Hassan0703 | |
| outputs: | | |
| dist/github-contribution-grid-snake.svg | |
| dist/github-contribution-grid-snake-dark.svg?palette=github-dark | |
| - name: push snake.svg to output branch | |
| uses: crazy-max/ghaction-github-pages@v3 | |
| with: | |
| target_branch: output | |
| build_dir: dist | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |