From fee88bec0201d36c2e224fe45de37013beb8dbe4 Mon Sep 17 00:00:00 2001 From: Github Date: Tue, 4 Jun 2024 16:45:13 -0600 Subject: [PATCH 1/2] Add gh cli call to deploy of HybridApp when we deploy staging NewExpensify --- .github/workflows/platformDeploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 353a898a941f..dbac1423b219 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -366,6 +366,18 @@ jobs: with: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + # Build a version of iOS and Android HybridApp if we are deploying to staging + hybridApp: + runs-on: ubuntu-latest + needs: validateActor + if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) }} + steps: + - name: 'Deploy HybridApp' + if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} + run: gh workflow run --repo Expensify/Mobile-Deploy deploy.yml -f force_build=true + env: + GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }} + postSlackMessageOnSuccess: name: Post a Slack message when all platforms deploy successfully runs-on: ubuntu-latest From d15d07f269b193b52b52c58549541d77b56cc475 Mon Sep 17 00:00:00 2001 From: Github Date: Wed, 5 Jun 2024 08:36:09 -0600 Subject: [PATCH 2/2] Combine if logic --- .github/workflows/platformDeploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index dbac1423b219..4ad6d54e2f24 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -370,10 +370,9 @@ jobs: hybridApp: runs-on: ubuntu-latest needs: validateActor - if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) }} + if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) && github.event_name == 'push' }} steps: - name: 'Deploy HybridApp' - if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} run: gh workflow run --repo Expensify/Mobile-Deploy deploy.yml -f force_build=true env: GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}