-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.09 KB
/
Copy pathsnake.yml
File metadata and controls
35 lines (30 loc) · 1.09 KB
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
# Кладётся в репозиторий MEGAJava505/MEGAJava505 по пути:
# .github/workflows/snake.yml
#
# Генерит змейку, которая ест граф контрибуций, и кладёт SVG
# в ветку output. README уже ссылается на неё. Токен не нужен —
# хватает встроенного GITHUB_TOKEN.
name: Snake
on:
schedule: [{ cron: "0 */12 * * *" }] # дважды в сутки
workflow_dispatch:
push: { branches: ["main"] }
permissions:
contents: write
jobs:
snake:
runs-on: ubuntu-latest
steps:
- name: Generate snake
uses: Platane/snk/svg-only@v3
with:
github_user_name: MEGAJava505
outputs: |
dist/github-contribution-grid-snake-dark.svg?palette=github-dark&color_snake=00E5C7&color_dots=0D1117,0c5d54,12907f,00b89c,00E5C7
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}