Skip to content

Commit 07c7949

Browse files
first commit
1 parent 602299f commit 07c7949

File tree

9 files changed

+84
-10
lines changed

9 files changed

+84
-10
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
name: Generate Datas
1+
name: Generate snake animation
22

33
on:
44
schedule: # execute every 12 hours
55
- cron: "* */12 * * *"
6+
67
workflow_dispatch:
78

9+
push:
10+
branches:
11+
- master
12+
813
jobs:
9-
build:
10-
name: Jobs to update datas
14+
generate:
1115
runs-on: ubuntu-latest
16+
1217
steps:
13-
# Snake Animation
14-
- uses: Platane/snk@master
15-
id: snake-gif
18+
- name: generate snake.svg
19+
uses: Platane/snk/svg-only@v2
1620
with:
17-
github_user_name: blackbirdcoder
18-
svg_out_path: dist/github-contribution-grid-snake.svg
21+
github_user_name: ${{ github.repository_owner }}
22+
outputs: dist/snake.svg
23+
1924

20-
- uses: crazy-max/ghaction-github-pages@v2.1.3
25+
- name: push snake.svg to the output branch
26+
uses: crazy-max/ghaction-github-pages@v2.6.0
2127
with:
2228
target_branch: output
2329
build_dir: dist
2430
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./.idea

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/mygithub.iml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)