From 433f85e4c9ac3fd824dfcc356bcb4044d49a152f Mon Sep 17 00:00:00 2001 From: mrobinson1022 Date: Sat, 13 May 2023 03:48:19 -0400 Subject: [PATCH] fix: update gitlab CI documentation (#1007) - CI_BUILD_REF_NAME has been depreciated use CI_COMMIT_REF_NAME Co-authored-by: riverside-mrobinson --- docs/ci.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ci.md b/docs/ci.md index 0131b164..e00c7482 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -151,7 +151,7 @@ before_script: - mkdir -p ~/.ssh - chmod 700 ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - - git checkout $CI_BUILD_REF_NAME + - git checkout $CI_COMMIT_REF_NAME - git remote set-url origin "git@gitlab.com:$CI_PROJECT_PATH.git" - git config --global user.name "${CI_USERNAME}" - git config --global user.email "${CI_EMAIL}" @@ -171,7 +171,7 @@ Some people have reported an issue when using GitLab CI (in [#573][17]): Here is an example script sequence for GitLab to mitigate the issue: ```bash -- git pull origin $CI_BUILD_REF_NAME +- git pull origin $CI_COMMIT_REF_NAME - npm run release ```