From: Luc Sarzyniec Date: Mon, 21 Feb 2022 17:28:44 +0000 (+0100) Subject: Use $CI_DEFAULT_BRANCH to get the name of the default branch in GitLab CI X-Git-Tag: 2022-04-02~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c70c0830a809cb76a6eec02b1ae7ab7c986d744;p=thirdparty%2Fut1-blacklists.git Use $CI_DEFAULT_BRANCH to get the name of the default branch in GitLab CI --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 325e4442..dead1331 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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