Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit aa89f2f

Browse files
authored
add failure catch to bottom of the workflow
This sends failure information to a slack channel
1 parent 9d51911 commit aa89f2f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docker-build-push-dockerhub-arm.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)