Skip to content

Notify on Workflow Failure #1840

Notify on Workflow Failure

Notify on Workflow Failure #1840

name: Notify on Workflow Failure
on:
workflow_run:
workflows: ['Process new code merged to main', 'Remote Build iOS', 'Remote Build Android']
branches: [main]
types:
- completed
permissions:
issues: write
jobs:
notifyFailure:
runs-on: blacksmith-2vcpu-ubuntu-2404
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Checkout
uses: useblacksmith/checkout@1c9394c220d293645707b625ba9d79685f093a8f # v1
- name: Process Failed Jobs
uses: ./.github/actions/javascript/failureNotifier
with:
GITHUB_TOKEN: ${{ github.token }}