diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ceae477..1604bcf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,8 +67,7 @@ push_job: - echo '提交代码' - git config user.email "ci@example.com" # 设置提交者的 email - git config user.name "GitLab CI" # 设置提交者的名称 - - cd $GOPATH/src/$DeployPath - git checkout $CI_COMMIT_REF_NAME - git add . - - git commit -m "auto commit pipelineId\:$CI_PIPELINE_ID" - - git push origin develop \ No newline at end of file + - git commit -m "auto commit pipelineId $CI_PIPELINE_ID" + - git push origin $CI_COMMIT_REF_NAME \ No newline at end of file