Skip to content

Slack Notification #170

Slack Notification

Slack Notification #170

Workflow file for this run

name: Slack Notification
on:
workflow_run:
workflows: ["Tests", "Docker Image For Main Builds", "Release Builds", "Build Docs"]
types: [completed]
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Notify on Tests failure
if: ${{ github.event.workflow_run.conclusion != 'success' && github.event.workflow_run.conclusion != 'skipped' }}
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"spiff-arena <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}>: ${{github.event.workflow_run.conclusion}} - branch ${{github.event.workflow_run.head_branch}}"}' \
${{ secrets.SLACK_WEBHOOK_URL }}