From 79239ac266a55567e3602c604458555716af5116 Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 17 Apr 2025 13:08:11 -0400 Subject: [PATCH] test --- .github/workflows/slack-notify.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slack-notify.yml b/.github/workflows/slack-notify.yml index 451805b..de33fc9 100644 --- a/.github/workflows/slack-notify.yml +++ b/.github/workflows/slack-notify.yml @@ -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 }} \ No newline at end of file