-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1003 Bytes
/
snake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Generate Datas
on:
schedule: # execute every 12 hours
- cron: "0 */24 * * *"
workflow_dispatch:
jobs:
# build:
# name: Jobs to update datas
# runs-on: ubuntu-latest
generate:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Snake Animation
- name: generate github-contribution-grid-snake.svg
uses: Platane/snk/svg-only@v3
# id: snake-gif
with:
github_user_name: anaperola
# svg_out_path: dist/github-contribution-grid-snake.svg
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
- name: push github-contribution-grid-snake.svg to the output branch
uses: crazy-max/[email protected]
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}