Skip to content

Commit cef3018

Browse files
authored
actions: alert on deployment failure (#341)
Signed-off-by: flakey5 <[email protected]>
1 parent 5d5f7a3 commit cef3018

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,19 @@ jobs:
4242
with:
4343
apiToken: ${{ secrets.CF_API_TOKEN }}
4444
command: deploy --env prod
45+
46+
- name: Alert on Failure
47+
if: failure() && github.repository == 'nodejs/release-cloudflare-worker'
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Slack Notification
51+
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2
52+
env:
53+
SLACK_COLOR: '#DE512A'
54+
SLACK_ICON: https://github.com/nodejs.png?size=48
55+
SLACK_TITLE: Deployment failed (${{ github.ref }})
56+
SLACK_MESSAGE: |
57+
A deployment of the Release Worker has failed.
58+
SLACK_USERNAME: nodejs-bot
59+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
4560

0 commit comments

Comments
 (0)