generate animation #33
This file contains 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 animation | |
on: | |
# run automatically every 24 hours | |
schedule: | |
- cron: "0 */24 * * *" | |
# allows to manually run the job at any time | |
workflow_dispatch: | |
# run on every push on the master branch | |
push: | |
branches: | |
- main | |
jobs: | |
generate: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: generate-snake-game-from-github-contribution-grid | |
uses: Platane/snk@v3.2.0 | |
with: | |
github_user_name: ${{ github.repository_owner }} | |
outputs: | | |
dist/github-snake.svg | |
dist/github-snake-dark.svg?palette=github-dark | |
dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 | |
dist/green-snake.gif?color_snake=#77985D&color_dots=#E5E6F5,#B4BCDF,#A1ADD6,#8E9DCC,#7D84B2 | |
dist/green-snake.svg?color_snake=#77985D&color_dots=#E5E6F5,#B1B5D4,#7D84B2,#5B629A,#4B5281 | |
- name: push github-contribution-grid-snake.svg to the output branch | |
uses: crazy-max/ghaction-github-pages@v3.2.0 | |
with: | |
target_branch: output | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |