Skip to content

GitHub Snake Game

GitHub Snake Game #164

Workflow file for this run

name: GitHub Snake Game
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
branches:
- main
jobs:
generate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Generate GitHub Contributions Snake Animation
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
github_token: ${{ secrets.GH_TOKEN }}
- name: Deploy to Output Branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./dist
publish_branch: output
commit_message: "Update snake animation [skip ci]"