Skip to content

Failure on Workflow #2602

Failure on Workflow

Failure on Workflow #2602

---
name: Failure on Workflow
on:
workflow_run:
workflows:
- "Build Image Nightly for Docker"
- "hazardlib + engine + server tests"
- "MacOS Intel install and test"
- "MacOS M1"
- "Test WebUI on RH based OS"
- "Ubuntu test of OpenQuake Engine"
- "Upgrade procedure for engine from 3.16 to Latest Release"
- "Windows amd64 full tests of OpenQuake Engine"
- "Test WebUI on RH based OS"
types:
- completed
jobs:
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ github.event.workflow_run.conclusion }}
notification_title: " ${{github.event.workflow_run.name}} - ${{github.event.workflow_run.conclusion}} on ${{github.event.workflow_run.head_branch}} - <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
message_format: ":fire: *${{github.event.workflow_run.name}}* ${{github.event.workflow_run.conclusion}} in <${{github.server_url}}/${{github.repository}}/${{github.event.workflow_run.head_branch}}|${{github.repository}}>"
footer: "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.MONITORING_SLACK }}