mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3438>
This commit is contained in:
parent
edbc9a2086
commit
625a7950c4
@ -32,6 +32,8 @@ variables:
|
|||||||
if [ -n "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" ]; then
|
if [ -n "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" ]; then
|
||||||
uri="$CI_MERGE_REQUEST_SOURCE_PROJECT_URL.git"
|
uri="$CI_MERGE_REQUEST_SOURCE_PROJECT_URL.git"
|
||||||
branch="$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
|
branch="$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
|
||||||
|
elif [ -n "$CI_COMMIT_TAG" ]; then
|
||||||
|
branch="$CI_COMMIT_TAG"
|
||||||
elif [ -n "$CI_COMMIT_BRANCH" ]; then
|
elif [ -n "$CI_COMMIT_BRANCH" ]; then
|
||||||
branch="$CI_COMMIT_BRANCH"
|
branch="$CI_COMMIT_BRANCH"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user