feat: 添加 Gitea 同步按钮,移除冗余的 web_trigger.yml 文件

This commit is contained in:
2025-12-17 14:28:21 +08:00
parent 7c963c3457
commit d0b891843d
2 changed files with 13 additions and 12 deletions

View File

@@ -40,4 +40,16 @@ main:
web_trigger_test:
- stages:
- name: 执行任务
script: echo "job"
script: echo "job"
# .cnb/web_trigger.yml
branch:
# 如下按钮在分支名以 release 开头的分支详情页面显示
- reg: "^main"
buttons:
- name: 同步代码到gitea
desc: 同步代码到gitea
event: web_trigger_sync_to_gitea
- name: 同步gitea代码到当前仓库
desc: 同步gitea代码到当前仓库
event: web_trigger_sync_from_gitea