From 1ce39f6f17ca76b984507ec99bc72fa755169dfb Mon Sep 17 00:00:00 2001 From: gewuyou Date: Sat, 19 Jul 2025 20:15:47 +0800 Subject: [PATCH] =?UTF-8?q?ci(test):=20=E4=BF=AE=E6=94=B9=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=88=86=E6=94=AF=E7=9A=84=E6=9E=84=E5=BB=BA=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将构建触发条件从特定用户排除改为特定事件触发 - 现在只在合并请求事件时触发构建 --- .gitlab/workflows/.gitlab-ci.test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/workflows/.gitlab-ci.test.yml b/.gitlab/workflows/.gitlab-ci.test.yml index c0ee5f6..0fe8317 100644 --- a/.gitlab/workflows/.gitlab-ci.test.yml +++ b/.gitlab/workflows/.gitlab-ci.test.yml @@ -5,7 +5,7 @@ stages: publish: stage: publish rules: - - if: '$CI_COMMIT_BRANCH == "test" && $CI_COMMIT_AUTHOR != "Project Pipeline Bot"' + - if: '$CI_COMMIT_BRANCH == "test" && $CI_PIPELINE_SOURCE == "merge_request_event"' script: - echo "🔧 授予 gradlew 执行权限..." - chmod +x gradlew