From 6a7864d094003e47324433705dc8b4f4ef25ee64 Mon Sep 17 00:00:00 2001 From: GMP Sankalpa Date: Sun, 24 Mar 2024 23:52:11 +0530 Subject: [PATCH] Update snake.yml --- .github/workflows/snake.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/snake.yml b/.github/workflows/snake.yml index 848b041..53fc645 100644 --- a/.github/workflows/snake.yml +++ b/.github/workflows/snake.yml @@ -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/ghaction-github-pages@v2.1.3 + - name: push snake.svg to the output branch + uses: crazy-max/ghaction-github-pages@v3.1.0 with: target_branch: output build_dir: dist