ci(test): 修改测试分支的构建触发条件

- 将构建触发条件从特定用户排除改为特定事件触发
- 现在只在合并请求事件时触发构建
This commit is contained in:
gewuyou 2025-07-19 20:15:47 +08:00
parent a0cf6e63b6
commit 1ce39f6f17

View File

@ -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