Merge pull request #5536 from Budibase/pro-build-fixes
Skip pro install on community forks
This commit is contained in:
commit
7046902d8a
1 changed files with 17 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ -z "${CI}" ]]; then
|
if [[ -z "${CI}" ]] then
|
||||||
echo 'Cannot run insall.sh unless in CI'
|
echo 'Cannot run insall.sh unless in CI'
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -11,6 +11,12 @@ BASE_BRANCH=$2
|
||||||
cd ../
|
cd ../
|
||||||
echo "Cloning pro repo..."
|
echo "Cloning pro repo..."
|
||||||
git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git
|
git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git
|
||||||
|
|
||||||
|
# Community forks won't be able to clone the pro repo as they can't access secrets
|
||||||
|
# Skip the rest of the installation and rely on npm version instead
|
||||||
|
# This should be ok as forks will not rely on pro changes
|
||||||
|
if [ -d "budibase-pro" ]
|
||||||
|
then
|
||||||
cd budibase-pro
|
cd budibase-pro
|
||||||
|
|
||||||
# Try to checkout the matching pro branch
|
# Try to checkout the matching pro branch
|
||||||
|
@ -22,3 +28,4 @@ git pull
|
||||||
|
|
||||||
echo "Initializing pro repo..."
|
echo "Initializing pro repo..."
|
||||||
yarn setup
|
yarn setup
|
||||||
|
fi
|
Loading…
Reference in a new issue