]> git.ipfire.org Git - thirdparty/ut1-blacklists.git/commitdiff
Use $CI_DEFAULT_BRANCH to get the name of the default branch in GitLab CI
authorLuc Sarzyniec <devel@olbat.net>
Mon, 21 Feb 2022 17:28:44 +0000 (18:28 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 17:28:44 +0000 (18:28 +0100)
.gitlab-ci.yml

index 325e44422cfe68a2dd27cfe0fa249595c1115332..dead133159c89e1e7678f890cbb868dffa3ebe05 100644 (file)
@@ -5,7 +5,7 @@ update-lists:
   before_script:
     - git config user.name "GitLab CI Runner"
     - git config user.email "gitlab@example.com"
-    - git checkout -b $MAIN_BRANCH || true
+    - git checkout -b $CI_DEFAULT_BRANCH || true
     - git pull
   script:
     # install required dependencies