Skip to content
Snippets Groups Projects
Commit 90b5b75f authored by Jack Robertson's avatar Jack Robertson
Browse files

feat: clone the branch that triggered the pipeline

parent 8661933a
No related branches found
No related tags found
1 merge request!8Clone the branch that triggered the pipeline
Pipeline #27430 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment