Skip to content

Notify main failure #4582

Notify main failure

Notify main failure #4582

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 }}"
}