Skip to content

Commit

Permalink
[action] send notificatioin if update container images job failed
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot committed Dec 18, 2024
1 parent eaf1055 commit 2e69a12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/update-image-digest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,15 @@ jobs:
labels: automated pr, kind/cleanup, release-note-none
branch: update-digests
delete-branch: true

- name: Get previous job's status
id: lastrun
uses: filiptronicek/get-last-job-status@main
- name: Slack Notification
if: ${{ (success() && steps.lastrun.outputs.status == 'failed') || failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: "Update container images digest"
SLACK_FOOTER: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow logs>"

0 comments on commit 2e69a12

Please sign in to comment.