From aa3346dc20b99292e1cc9dd76f13f52fc0b8a3c7 Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Tue, 31 Aug 2021 22:00:18 -0700 Subject: [PATCH 1/2] Ping deployers when mobile prod deploys fail --- .github/workflows/platformDeploy.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 65976854ae58..5f7c3c2c0167 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -89,6 +89,24 @@ jobs: env: VERSION: ${{ env.VERSION_CODE }} + - name: Warn deployers if Android production deploy failed + if: ${{ failure() && fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} + uses: 8398a7/action-slack@v3 + with: + status: custom + custom_payload: | + { + channel: '#deployer', + attachments: [{ + color: "#DB4545", + pretext: ``, + text: `💥 Android production deploy failed. Please manually submit ${{ github.event.release.tag_name }} in the Google Play Store. 💥`, + }] + } + env: + GITHUB_TOKEN: ${{ github.token }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} + desktop: name: Build and deploy Desktop needs: validateActor @@ -235,6 +253,24 @@ jobs: env: VERSION: ${{ env.IOS_VERSION }} + - name: Warn deployers if iOS production deploy failed + if: ${{ failure() && fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} + uses: 8398a7/action-slack@v3 + with: + status: custom + custom_payload: | + { + channel: '#deployer', + attachments: [{ + color: "#DB4545", + pretext: ``, + text: `💥 iOS production deploy failed. Please manually submit ${{ env.IOS_VERSION }} in the App Store. 💥`, + }] + } + env: + GITHUB_TOKEN: ${{ github.token }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} + web: name: Build and deploy Web needs: validateActor From 1440c25913f0d480a5070027112e3e80954690ec Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Wed, 1 Sep 2021 10:46:06 -0700 Subject: [PATCH 2/2] Link to stores in message --- .github/workflows/platformDeploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 5f7c3c2c0167..769cdacc8f1b 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -100,7 +100,7 @@ jobs: attachments: [{ color: "#DB4545", pretext: ``, - text: `💥 Android production deploy failed. Please manually submit ${{ github.event.release.tag_name }} in the Google Play Store. 💥`, + text: `💥 Android production deploy failed. Please manually submit ${{ github.event.release.tag_name }} in the . 💥`, }] } env: @@ -264,7 +264,7 @@ jobs: attachments: [{ color: "#DB4545", pretext: ``, - text: `💥 iOS production deploy failed. Please manually submit ${{ env.IOS_VERSION }} in the App Store. 💥`, + text: `💥 iOS production deploy failed. Please manually submit ${{ env.IOS_VERSION }} in the . 💥`, }] } env: