Skip to content

Commit c53bcbc

Browse files
Push failure to slack (#1509)
* Push failure to slack
1 parent cc3af67 commit c53bcbc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/publish-all-operators.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,16 @@ jobs:
246246
./azure-cc-deployment-files-${{ needs.start.outputs.new_version }}.zip
247247
./gcp-oidc-deployment-files-${{ needs.start.outputs.new_version }}.zip
248248
./uid2-operator-release-manifests-${{ needs.start.outputs.new_version }}.zip
249+
notifyFailure:
250+
name: Notify Slack on Failure
251+
runs-on: ubuntu-latest
252+
if: failure() && github.ref == 'refs/heads/main'
253+
needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI]
254+
steps:
255+
- name: Send Slack Alert
256+
env:
257+
SLACK_COLOR: danger
258+
SLACK_MESSAGE: ':x: Operator Pipeline failed'
259+
SLACK_TITLE: Pipeline Failed in ${{ github.workflow }}
260+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
261+
uses: rtCamp/action-slack-notify@v2

0 commit comments

Comments
 (0)