From: Luc Sarzyniec Date: Mon, 21 Feb 2022 17:40:11 +0000 (+0100) Subject: Specify the remote and the branch reference when pulling the last version of the... X-Git-Tag: 2022-04-02~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83df4530025fd940332a8a42e15761efd3e94088;p=thirdparty%2Fut1-blacklists.git Specify the remote and the branch reference when pulling the last version of the repository in GitLab CI --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eec23078..2b2c7525 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,8 +5,8 @@ update-lists: before_script: - git config user.name "GitLab CI Runner" - git config user.email "gitlab@example.com" - - git checkout -b $CI_DEFAULT_BRANCH || true - - git pull --rebase + - git checkout -b $CI_DEFAULT_BRANCH origin/$CI_DEFAULT_BRANCH || true + - git pull --rebase origin $CI_DEFAULT_BRANCH script: # install required dependencies - bundle install