Skip to content

Commit 1b5cb0f

Browse files
authored
Update main.yml
1 parent f474c39 commit 1b5cb0f

1 file changed

Lines changed: 32 additions & 13 deletions

File tree

.github/workflows/main.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
1-
name: Generate Datas
1+
name: generate animation
2+
23
on:
3-
schedule: # execute every 12 hours
4-
- cron: "*/12 * * * *"
4+
5+
schedule:
6+
- cron: "0 */12 * * *"
7+
8+
59
workflow_dispatch:
10+
11+
12+
push:
13+
branches:
14+
- main
15+
616
jobs:
7-
build:
8-
name: Jobs to update datas
17+
generate:
918
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
1021
steps:
11-
# Snake Animation
12-
- uses: Platane/snk@master
13-
id: snake-gif
22+
23+
- name: generate github-contribution-grid-snake.svg
24+
uses: Platane/snk/svg-only@v3
1425
with:
15-
github_user_name: VCGithubCode
16-
svg_out_path: dist/github-contribution-grid-snake.svg
17-
18-
- uses: crazy-max/ghaction-github-pages@v3.1.0
26+
github_user_name: ${{ github.repository_owner }}
27+
outputs: |
28+
dist/github-contribution-grid-snake.svg
29+
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
34+
35+
36+
- name: push github-contribution-grid-snake.svg to the output branch
37+
uses: crazy-max/ghaction-github-pages@v3.1.0
1938
with:
2039
target_branch: output
2140
build_dir: dist
2241
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)