Skip to content

Generate Snake Animation #187

Generate Snake Animation

Generate Snake Animation #187

Workflow file for this run

name: Generate Snake Animation
on:
schedule:
- cron: "0 0 * * *" # Every day at midnight UTC
push:
branches:
- main
jobs:
generate:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout your repo so Git works
- name: Checkout repo
uses: actions/checkout@v3
# Step 2: Generate the snake animation
- name: Generate the snake animation
uses: Platane/snk@v3
with:
github_user_name: alihm961
outputs: |
./output/github-contribution-grid-snake.svg
# Step 3: Commit and push the generated file
- name: Push the generated files
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Action
author_email: [email protected]
message: "Generate contribution snake"
add: "./output/github-contribution-grid-snake.svg"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}