Skip to content
Snippets Groups Projects
Commit 40613dbb authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

CI: switch to $BRANCH orchestra too

parent 194d806c
No related branches found
No related tags found
No related merge requests found
Pipeline #3108 failed
......@@ -36,6 +36,9 @@ EOF
fi
set -x
#
# Detect target branch
#
BRANCH=""
if test -n "$PUSHED_REF"; then
if [[ "$PUSHED_REF" = refs/heads/* ]]; then
......@@ -46,6 +49,10 @@ if test -n "$PUSHED_REF"; then
fi
fi
# Switch orchestra to that branch too, if it exists
git fetch
git checkout "$BRANCH" || true
#
# Install orchestra
#
......
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