GHA: roll put slack build failed notification

This commit is contained in:
aboyko
2023-11-01 15:59:44 -04:00
parent 4fcf8ff9a5
commit 10cb1ef7ec
5 changed files with 14 additions and 21 deletions

35
.github/workflows/notify-failed.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Notify Failed
on:
workflow_call:
inputs:
md_message:
description: Markdown message
required: true
type: string
jobs:
notify-failure:
runs-on: ubuntu-latest
steps:
- id: tools-team-slack
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
env:
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
with:
channel-id: "C0188MENU2J"
payload: |
{
"text": "${{ inputs.md_message }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":fail: ${{ inputs.md_message }}"
}
}
]
}