Skip to content

Slack CI Alerts

Slack CI Alerts #135

Workflow file for this run

name: Slack CI Alerts
on:
workflow_run:
workflows: [CI, Python Airflow Operator, Build Release Images]
types: [completed]
jobs:
on_push_failure:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'master'
steps:
- name: "Master Notification"
uses: Mo-Fatah/ci-alerts@v1
env:
webhook: ${{ secrets.SLACK_WEBHOOK }}
event: push
commit: ${{ github.sha }}
commit_url: https://github.com/armadaproject/armada/commit/${{ github.sha }}
author: ${{ github.actor }}
workflow_name: ${{ github.event.workflow_run.name }}
workflow_url: ${{ github.event.workflow_run.html_url}}
on_pull_request_failure:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request'
steps:
- uses: actions/checkout@v3.3.0
- name: "Pull Request Notification"
uses: Mo-Fatah/ci-alerts@v1
env:
webhook: ${{ secrets.SLACK_WEBHOOK }}
event: pr
commit: ${{ github.sha }}
commit_url: https://github.com/armadaproject/armada/commit/${{ github.sha }}
author: ${{ github.actor }}
workflow_name: ${{ github.event.workflow_run.name }}
workflow_url: ${{ github.event.workflow_run.html_url}}
users_path: ${{github.workspace}}/.github/gh-to-slackid