Skip to content

Notify on Workflow Failure #13

Notify on Workflow Failure

Notify on Workflow Failure #13

Workflow file for this run

name: Notify on Workflow Failure
on:
workflow_run:
workflows: ["Feature", "Versioning", "Release"]
types:
- completed
jobs:
notify:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- name: API Alerts Notify
uses: apialerts/notify-action@v1
with:
api_key: ${{ secrets.API_ALERTS_KEY }}
message: '❌ Feature - Workflow *${{ github.event.workflow_run.event }}* has failed in repository *${{ github.repository }}*.'
link: '${{ github.event.workflow_run.event }}'