-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f10a5eb
commit 6a7864d
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|