]> git.ipfire.org Git - thirdparty/ut1-blacklists.git/commitdiff
Specify the remote and the branch reference when pulling the last version of the...
authorLuc Sarzyniec <devel@olbat.net>
Mon, 21 Feb 2022 17:40:11 +0000 (18:40 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 17:40:11 +0000 (18:40 +0100)
.gitlab-ci.yml

index eec230785e07e83943da6d494990cbf5aa46c58b..2b2c75259b34922f2586d14725e0499c5cd31150 100644 (file)
@@ -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