diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8ce53d4..d3d3474 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,4 +38,19 @@ jobs: with: apiToken: ${{ secrets.CF_API_TOKEN }} command: deploy --env prod + + - name: Alert on Failure + if: failure() && github.repository == 'nodejs/release-cloudflare-worker' + runs-on: ubuntu-latest + steps: + - name: Slack Notification + uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2 + env: + SLACK_COLOR: '#DE512A' + SLACK_ICON: https://github.com/nodejs.png?size=48 + SLACK_TITLE: Deployment failed (${{ github.ref }}) + SLACK_MESSAGE: | + A deployment of the Release Worker has failed. + SLACK_USERNAME: nodejs-bot + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}