ci:简化 reset阶段的配置

-移除了 publish 阶段的依赖
- 删除了 CI_COMMIT_MESSAGE 的正则表达式检查
- 精简了 script部分的内容
This commit is contained in:
gewuyou 2025-07-19 20:12:18 +08:00
parent 0f1a0b98f4
commit 0bccdc0952

View File

@ -78,10 +78,9 @@ publish:
# 🔄 重建 test 分支
reset:
stage: reset
needs: [ "publish" ]
image: alpine:latest
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_MESSAGE !~ /^ci:|^chore:|^\[no-publish\]/'
- if: '$CI_COMMIT_BRANCH == "main"'
script:
- set -euo pipefail
- apk add --no-cache git