This repository was archived by the owner on Oct 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 } catch (error) {
5959 core.setFailed(error.message);
6060 }
61+
62+ - name : Notify Slack on Failure
63+ if : failure()
64+ uses : slackapi/slack-github-action@v1.24.0
65+ with :
66+ payload : |
67+ {
68+ "text": ":x: Workflow *${{ github.workflow }}* failed in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
69+ }
70+ env :
71+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
72+
Original file line number Diff line number Diff line change @@ -201,3 +201,14 @@ jobs:
201201 - name : Cleanup
202202 run : |
203203 docker compose down
204+
205+ - name : Notify Slack on Failure
206+ if : failure()
207+ uses : slackapi/slack-github-action@v1.24.0
208+ with :
209+ payload : |
210+ {
211+ "text": ":x: Workflow *${{ github.workflow }}* failed in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
212+ }
213+ env :
214+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change @@ -197,3 +197,14 @@ jobs:
197197 - name : Cleanup
198198 run : |
199199 docker compose down
200+
201+ - name : Notify Slack on Failure
202+ if : failure()
203+ uses : slackapi/slack-github-action@v1.24.0
204+ with :
205+ payload : |
206+ {
207+ "text": ":x: Workflow *${{ github.workflow }}* failed in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
208+ }
209+ env :
210+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments