From 0bccdc095248c9c852beaf98d12e1814fd62afb0 Mon Sep 17 00:00:00 2001 From: gewuyou Date: Sat, 19 Jul 2025 20:12:18 +0800 Subject: [PATCH] =?UTF-8?q?ci:=E7=AE=80=E5=8C=96=20reset=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -移除了 publish 阶段的依赖 - 删除了 CI_COMMIT_MESSAGE 的正则表达式检查 - 精简了 script部分的内容 --- .gitlab/workflows/.gitlab-ci.main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab/workflows/.gitlab-ci.main.yml b/.gitlab/workflows/.gitlab-ci.main.yml index 5f03320..543d0bf 100644 --- a/.gitlab/workflows/.gitlab-ci.main.yml +++ b/.gitlab/workflows/.gitlab-ci.main.yml @@ -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