From 1ae2ff1f6977b0c086dadf15d20e380104621bca Mon Sep 17 00:00:00 2001 From: Siddhesh Koyande <34239658+siddhrsh@users.noreply.github.com> Date: Tue, 9 Mar 2021 22:51:41 +0530 Subject: [PATCH] Update PBRP.yml --- .github/workflows/PBRP.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PBRP.yml b/.github/workflows/PBRP.yml index 1174ffc..bf432e2 100644 --- a/.github/workflows/PBRP.yml +++ b/.github/workflows/PBRP.yml @@ -32,6 +32,12 @@ jobs: - name: Auto Adapt Manifest run: echo "MANIFEST=https://github.com/PitchBlackRecoveryProject/manifest_pb -b ${GITHUB_REF##*/}" >> $GITHUB_ENV + - name: Export Vars + run: | + if [[ ${BUILD_RELEASE_TYPE} == "TEST" ]]; then echo "TEST_BUILD=true" >> $GITHUB_ENV;fi + if [[ ${BUILD_RELEASE_TYPE} == "BETA" ]]; then echo "BETA_BUILD=true" >> $GITHUB_ENV;fi + if [[ ${BUILD_RELEASE_TYPE} == "OFFICIAL" ]]; then echo "PB_OFFICIAL=true" >> $GITHUB_ENV;fi + - name: Recovery Compilation uses: Carbonatedblack/Recovery-Compiler@beta @@ -40,5 +46,4 @@ jobs: sudo apt-get update && sudo apt-get install sshpass -y export CIRCLE_SHA1=$GITHUB_SHA cd $BuildPath - if [[ ! -z "${{ github.event.inputs.DEPLOY_TYPE }}" ]]; then export BUILD_RELEASE_TYPE="TEST" ;fi bash vendor/utils/pb_deploy.sh ${BUILD_RELEASE_TYPE} ${VENDOR} ${CODENAME}