Files
spring-tools/.github/workflows/notify-failed-build.yml
2023-11-01 15:22:23 -04:00

39 lines
884 B
YAML

name: Notify Failed Build
on:
workflow_call:
inputs:
link:
description: Workflow URL link markdown
required: true
type: string
label:
description: Build label
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: |
{
"attachments": [
{
"color": "f0190a",
"text": {
"type": "mrkdwn",
"text": "${{ inputs.label }} ${{ inputs.link }}"
}
}
]
}