From 625a7950c4a3089eef554b61a45dbf7a8a22b575 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 2 Dec 2023 21:23:45 +0100 Subject: [PATCH] ci: Add fallback to $CI_COMMIT_TAG for tag pipelines The script to check out the mutter repository is missing the case of tag pipelines, and resorts to CI_DEFAULT_BRANCH. Add a fallback through $CI_COMMIT_TAG, so these pipelines fetch the expected commit. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3188 Part-of: --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e70be1110..50e292111 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,8 @@ variables: if [ -n "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" ]; then uri="$CI_MERGE_REQUEST_SOURCE_PROJECT_URL.git" branch="$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" + elif [ -n "$CI_COMMIT_TAG" ]; then + branch="$CI_COMMIT_TAG" elif [ -n "$CI_COMMIT_BRANCH" ]; then branch="$CI_COMMIT_BRANCH" else