Skip to content

Commit 31edf79

Browse files
josephperrottalxhub
authored andcommitted
ci: add slack messages for failed aio deployments (angular#51956)
Send message to to slack when aio fails to deploy PR Close angular#51956
1 parent 367b075 commit 31edf79

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ jobs:
186186
CI_SECRET_AIO_DEPLOY_FIREBASE_TOKEN: ${{ secrets.AIO_DEPLOY_TOKEN }}
187187
CI_SECRET_PAYLOAD_FIREBASE_TOKEN: ${{ secrets.AIO_PAYLOAD_TOKEN }}
188188
run: yarn --cwd aio deploy-production
189+
- name: Notify about failed deployment
190+
if: ${{ failure() }}
191+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
192+
with:
193+
channel-id: 'C07DT5M6V,CKV1F72BG'
194+
slack-message: 'Deploy to aio job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
195+
env:
196+
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
189197

190198
zone-js:
191199
runs-on:

0 commit comments

Comments
 (0)