diff --git a/.gitlab/workflows/.gitlab-ci.main.yml b/.gitlab/workflows/.gitlab-ci.main.yml index 8445356..8a65366 100644 --- a/.gitlab/workflows/.gitlab-ci.main.yml +++ b/.gitlab/workflows/.gitlab-ci.main.yml @@ -101,7 +101,7 @@ reset: - apk add --no-cache git - git config --global user.email "pipeline@${GITLAB_URL}" - git config --global user.name "Project Pipeline Bot" - - git clone --depth=1 --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo + - git clone --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo - cd repo - git checkout -B test - git push origin test --force diff --git a/.gitlab/workflows/.gitlab-ci.test.yml b/.gitlab/workflows/.gitlab-ci.test.yml index f88d001..aaeb1ee 100644 --- a/.gitlab/workflows/.gitlab-ci.test.yml +++ b/.gitlab/workflows/.gitlab-ci.test.yml @@ -8,6 +8,8 @@ build: rules: - if: '$CI_COMMIT_BRANCH == "test"' script: + - echo "πŸ”§ 授予 gradlew ζ‰§θ‘Œζƒι™..." + - chmod +x gradlew - ./gradlew clean build tags: - java