Generate SVG image #3733
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 SVG image | |
| on: | |
| schedule: | |
| - cron: "0 */12 * * *" # every 12 hours | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: generate github-contribution-grid-snake.svg | |
| uses: Platane/snk@master | |
| with: | |
| github_user_name: ${{ github.repository_owner }} | |
| svg_out_path: dist/github-contribution-grid-snake.svg | |
| - name: push github-contribution-grid-snake.svg to the output branch | |
| uses: crazy-max/ghaction-github-pages@v4.2.0 | |
| with: | |
| target_branch: snake | |
| build_dir: dist | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CRON_JOB_GITHUB_TOKEN }} |