Merge pull request #8121 from Budibase/branch-fallback-budibase-ci
Fallback to push branch name for pro install script
This commit is contained in:
commit
5e42c84a5b
|
@ -18,6 +18,11 @@ git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git
|
||||||
if [[ -d "budibase-pro" ]]; then
|
if [[ -d "budibase-pro" ]]; then
|
||||||
cd budibase-pro
|
cd budibase-pro
|
||||||
|
|
||||||
|
if [[ -z "${BRANCH}" ]]; then
|
||||||
|
echo Using GITHUB_REF_NAME: $GITHUB_REF_NAME
|
||||||
|
export BRANCH=$GITHUB_REF_NAME
|
||||||
|
fi
|
||||||
|
|
||||||
# Try to checkout the matching pro branch
|
# Try to checkout the matching pro branch
|
||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue