This commit is contained in:
Austin 2025-04-17 13:08:11 -04:00
parent a533521d4c
commit 79239ac266

View File

@ -21,7 +21,27 @@ jobs:
with:
payload: |
{
"text": ":x: *${{ inputs.workflow_name || github.workflow }}* failed in *${{ github.repository }}*\n <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"
"text": ":x: *${{ inputs.workflow_name || github.workflow }}* failed in *${{ github.repository }}*\n <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>",
"attachments": [
{
"color": "#FF0000",
"title": "Workflow Failed: ${{ inputs.workflow_name || github.workflow }}",
"title_link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"fields": [
{
"title": "Repository",
"value": "${{ github.repository }}",
"short": true
},
{
"title": "Branch",
"value": "${{ github.ref_name }}",
"short": true
}
],
"footer": "GitHub Actions"
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}