-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 893 Bytes
/
snake.yml
File metadata and controls
33 lines (29 loc) · 893 Bytes
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
name: Generate Snake
on:
schedule:
- cron: "0 2 * * *" # Runs every day 2:00
push:
branches:
- main # 添加 main 分支的 push 触发
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate Snake
uses: Platane/snk@v3
with:
github_user_name: ${{ github.repository_owner }}
outputs: |
dist/github-contribution-grid-snake.svg?color_snake=orange
dist/github-contribution-grid-snake-dark.svg?palette=github-dark&color_snake=orange
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}