|
|
|
@ -4,16 +4,18 @@ if [[ -z "${CI}" ]]; then |
|
|
|
fi |
|
|
|
|
|
|
|
BRANCH=$1 |
|
|
|
BASE_BRANCH=$2 |
|
|
|
|
|
|
|
cd ../ |
|
|
|
echo "Cloning pro repo..." |
|
|
|
git clone git@github.com:Budibase/budibase-pro.git |
|
|
|
cd budibase-pro |
|
|
|
|
|
|
|
echo "Checkout branch $BRANCH" |
|
|
|
# Try to checkout the matching pro branch |
|
|
|
# If branch does not exist we will continue with default branch 'develop' |
|
|
|
git checkout $BRANCH |
|
|
|
# Try to checkout the matching pro base (master or develop) branch |
|
|
|
git checkout $BASE_BRANCH |
|
|
|
# If neither branch exists continue with default branch 'develop' |
|
|
|
git pull |
|
|
|
|
|
|
|
echo "Initializing pro repo..." |
|
|
|
|