Skip to content

Commit

Permalink
Send Slack notification when deploy fails (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Mar 21, 2023
1 parent acb9f28 commit 949ef13
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ jobs:
--exclude https://github.com/brimdata/brimcap#
--exclude https://github.com/brimdata/build-suricata.*#
--exclude https://github.com/brimdata/brimcap/wiki.*#
- name: Inform Slack users of failure
uses: tiloio/[email protected]
if: ${{ failure() }}
with:
slack_web_hook_url: ${{ secrets.SLACK_WEBHOOK_BRIMLABS_DOCS }}
slack_json: |
{
"username": "{{GITHUB_REPOSITORY}}",
"text": "Deploy failed: https://github.com/{{GITHUB_REPOSITORY}}/actions/runs/{{GITHUB_RUN_ID}}"
}
# - name: Trigger Algolia Crawler
# run: |
Expand Down

2 comments on commit 949ef13

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.