Skip to content

Commit

Permalink
Add Slack notifications on failure (#620)
Browse files Browse the repository at this point in the history
since we didn't notice failed release action for a whole week.
We don't add the notifications for failed PRs since it would spam our
Slack channel whenever someone opens a PR where tests are failing.
  • Loading branch information
ansd authored Feb 26, 2021
1 parent 23ef25c commit 976b3e8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-versioned-api-ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:
git add ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc
git add ./Wiki_Sidebar.md
git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference" && git push
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,action,eventName
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ jobs:
uses: rajatjindal/[email protected]
with:
krew_template_file: hack/rabbitmq.yaml
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,action,eventName
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
7 changes: 7 additions & 0 deletions .github/workflows/update-latest-api-ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ jobs:
cp ../cluster-operator/docs/api/rabbitmq.com.ref.asciidoc ./API_Reference.asciidoc
git add ./API_Reference.asciidoc
git diff-index --quiet HEAD || git commit -m "Update Latest API Reference" && git push
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,action,eventName
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

0 comments on commit 976b3e8

Please sign in to comment.