From 95ff0d966564c5515ac4b11cdfa40fa11aeeba42 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Tue, 4 Oct 2022 14:50:21 +0100 Subject: [PATCH 1/2] Fallback --- scripts/pro/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/pro/install.sh b/scripts/pro/install.sh index 6a388dc190..781ecd8caa 100755 --- a/scripts/pro/install.sh +++ b/scripts/pro/install.sh @@ -18,6 +18,10 @@ git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git if [[ -d "budibase-pro" ]]; then cd budibase-pro + if [[ -z "${BRANCH}" ]]; then + export BRANCH=$GITHUB_REF_NAME + fi + # Try to checkout the matching pro branch git checkout $BRANCH From 43c8bfffedfa22a57c0731c7d114c1d4fd75bd49 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Tue, 4 Oct 2022 14:56:30 +0100 Subject: [PATCH 2/2] Update scripts/pro/install.sh --- scripts/pro/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pro/install.sh b/scripts/pro/install.sh index 781ecd8caa..212f5b5a39 100755 --- a/scripts/pro/install.sh +++ b/scripts/pro/install.sh @@ -19,6 +19,7 @@ if [[ -d "budibase-pro" ]]; then cd budibase-pro if [[ -z "${BRANCH}" ]]; then + echo Using GITHUB_REF_NAME: $GITHUB_REF_NAME export BRANCH=$GITHUB_REF_NAME fi