Skip to content

Commit

Permalink
Update snake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpsankalpa authored Mar 24, 2024
1 parent f10a5eb commit 6a7864d
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/snake.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
name: Generate Datas
name: Generate snake animation

on:
schedule: # execute every 12 hours
- cron: "* */12 * * *"

workflow_dispatch:

push:
branches:
- master

jobs:
build:
name: Jobs to update datas
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
# Snake Animation
- uses: Platane/snk@master
id: snake-gif
- name: generate snake.svg
uses: Platane/snk/svg-only@v3
with:
github_user_name: ${{ github.repository_owner }}
svg_out_path: dist/github-contribution-grid-snake.svg
outputs: dist/snake.svg?palette=github-dark


- uses: crazy-max/[email protected]
- name: push snake.svg to the output branch
uses: crazy-max/[email protected]
with:
target_branch: output
build_dir: dist
Expand Down

0 comments on commit 6a7864d

Please sign in to comment.