Notify main failure #3069
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify main failure | |
on: | |
workflow_run: | |
branches: | |
- main | |
workflows: | |
- '**' | |
- '!Markdown link check' | |
types: | |
- completed | |
jobs: | |
slackNotify: | |
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Notify Brim HQ of failure on main | |
uses: tiloio/[email protected] | |
with: | |
slack_web_hook_url: ${{ secrets.SLACK_WEBHOOK_BRIMLABS_TEST }} | |
slack_json: | | |
{ | |
"username": "github-actions", | |
"text": "Workflow \"${{ github.event.workflow_run.name }}\" failed on main.\n${{ github.event.workflow_run.html_url }}" | |
} |