Skip to content

Generate Snake Animation #3

Generate Snake Animation

Generate Snake Animation #3

Workflow file for this run

name: Generate Snake Animation
on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC
workflow_dispatch:
push:
branches:
- main
- master
jobs:
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Generate Snake Animation — Dark Mode
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-snake-dark.svg?palette=github-dark&color_snake=#0070F3&color_dots=#333333,#0070F3,#00DFD8,#0070F3,#00DFD8
- name: Generate Snake Animation — Light Mode
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-snake.svg?palette=github&color_snake=#0070F3&color_dots=#EAEAEA,#0070F3,#00DFD8,#0070F3,#00DFD8
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}