From 0207cb2f5378a76dbd3952693873c8949ff7910b Mon Sep 17 00:00:00 2001 From: skeleton Date: Mon, 14 Oct 2024 11:44:43 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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