From 1446c28ed2bfe2efec99bc2fc83b111717bcb2af Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Wed, 4 Aug 2021 10:40:46 +0930 Subject: [PATCH] fix(gitlab_release): Use a user token to access the git repo for pushing commits back #1 --- gitlab_release/.gitlab-ci.yml | 2 +- gitlab_release/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab_release/.gitlab-ci.yml b/gitlab_release/.gitlab-ci.yml index 2938652..f8b04dd 100644 --- a/gitlab_release/.gitlab-ci.yml +++ b/gitlab_release/.gitlab-ci.yml @@ -13,7 +13,7 @@ - pip install --upgrade pip - pip install -r $ROOT_DIR/gitlab_release/requirements.txt - pip install $ROOT_DIR/gitlab_release/python-module/cz_nfc/. - - 'CLONE_URL="https://gitlab-ci-token:$API_RO_GIT_WR@gitlab.com/$CI_PROJECT_PATH.git"' + - 'CLONE_URL="https://gitlab-ci-token:$GIT_COMMIT_TOKEN@gitlab.com/$CI_PROJECT_PATH.git"' - echo "[DEBUG] CLONE_URL[$CLONE_URL]" - git clone -b $CI_COMMIT_BRANCH $CLONE_URL repo - cd repo diff --git a/gitlab_release/README.md b/gitlab_release/README.md index 2a0fd66..5ea31a8 100644 --- a/gitlab_release/README.md +++ b/gitlab_release/README.md @@ -30,7 +30,7 @@ Gitlab Release: | var name | Description | |:----:|:----| -| API_RO_GIT_WR | *this must be a personal token that has write access to the repository* | +| GIT_COMMIT_TOKEN | *this must be a personal token that has write access to the repository* | ## Job Workflow