From 70063a3b593e63e79ce5ac9813e4a6f5b612cd03 Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Thu, 13 May 2021 16:02:16 -0700 Subject: [PATCH] Update staging after creating new BUILD version in finishReleaseCycle --- .github/workflows/finishReleaseCycle.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/finishReleaseCycle.yml b/.github/workflows/finishReleaseCycle.yml index 36b8997e6fac..c6fdeabaf53e 100644 --- a/.github/workflows/finishReleaseCycle.yml +++ b/.github/workflows/finishReleaseCycle.yml @@ -77,9 +77,17 @@ jobs: WORKFLOW: createNewVersion.yml INPUTS: '{ "SEMVER_LEVEL": "BUILD" }' - - name: Pull main to get the new version + - name: Update staging branch to trigger staging deploy + uses: Expensify/Expensify.cash/.github/actions/triggerWorkflowAndWait@main + with: + GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }} + WORKFLOW: updateProtectedBranch.yml + INPUTS: '{ "TARGET_BRANCH": "staging" }' + + - name: Pull staging to get the new version run: | - git pull origin main + git checkout staging + git pull origin staging echo "NEW_VERSION=$(npm run print-version --silent)" >> $GITHUB_ENV echo "New version is ${{ env.NEW_VERSION }}"