From 90b5b75f3ccc7199068ee666d201b1e2193b9e40 Mon Sep 17 00:00:00 2001 From: Jack Robertson <jack.robertson@nexusmods.com> Date: Tue, 24 May 2022 15:18:07 +0000 Subject: [PATCH] feat: clone the branch that triggered the pipeline --- src/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/release.sh b/src/release.sh index 269e563..b5fce87 100755 --- a/src/release.sh +++ b/src/release.sh @@ -3,7 +3,7 @@ ssh git@gitlab.nexdev.uk echo "Cloning 'git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git'" -git clone "git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git" -q > /dev/null +git clone -q -b "$CI_COMMIT_REF_NAME" "git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git" > /dev/null echo "Running standard version" cd "$CI_PROJECT_NAME" @@ -49,4 +49,4 @@ while :; do done # No flag passed, follow-tags instead -git push --follow-tags -o ci.skip \ No newline at end of file +git push --follow-tags -o ci.skip -- GitLab