forked from babalae/better-genshin-impact
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cnb.yml
More file actions
27 lines (27 loc) · 942 Bytes
/
Copy path.cnb.yml
File metadata and controls
27 lines (27 loc) · 942 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
main:
# 自定义按钮可触发的事件
web_trigger_one:
- docker:
image: python:3.11
imports:
- https://cnb.cool/bettergi/secret/-/blob/main/env.yml
stages:
- name: 下载构建物并上传
script: |
cd .github/workflows
pip install -r requirements.txt
python github_download_and_cnb_upload.py --cnb-token $CNB_TOKEN --github-token $GITHUB_TOKEN
echo done!
api_trigger_one:
- docker:
image: python:3.11
imports:
- https://cnb.cool/bettergi/secret/-/blob/main/env.yml
stages:
- name: API触发上传
script: |
echo run id: $RUN_ID
cd .github/workflows
pip install -r requirements.txt
python github_download_and_cnb_upload.py --cnb-token $CNB_TOKEN --github-token $GITHUB_TOKEN --run-id $RUN_ID
echo api done!