Skip to content

Workflow failure #140699

Workflow failure

Workflow failure #140699

name: Workflow failure
on:
workflow_run:
workflows: ["*"]
types:
- completed
jobs:
on-failure:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow.name != 'Workflow failure'
steps:
- name: Notify Slack
run: |
json='{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":":red: Status page workflow failed: <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}>"}}]}'
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.STATUS_OPS_WEBHOOK }}