From e85fef7df972892f4f769604834d8bebe42fa956 Mon Sep 17 00:00:00 2001 From: abuabraham-ttd <130511456+abuabraham-ttd@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:48:48 -0800 Subject: [PATCH 1/3] Push failure to slack --- .github/workflows/publish-all-operators.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish-all-operators.yaml b/.github/workflows/publish-all-operators.yaml index a2711421e..e03195a85 100644 --- a/.github/workflows/publish-all-operators.yaml +++ b/.github/workflows/publish-all-operators.yaml @@ -246,3 +246,16 @@ jobs: ./azure-cc-deployment-files-${{ needs.start.outputs.new_version }}.zip ./gcp-oidc-deployment-files-${{ needs.start.outputs.new_version }}.zip ./uid2-operator-release-manifests-${{ needs.start.outputs.new_version }}.zip + notifyFailure: + name: Notify Slack on Failure + runs-on: ubuntu-latest + if: failure() && github.ref == 'refs/heads/main' + needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI] + steps: + - name: Send Slack Alert + env: + SLACK_COLOR: danger + SLACK_MESSAGE: ':x: Operator Pipeline failed' + SLACK_TITLE: Pipeline Failed in ${{ github.workflow }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + uses: rtCamp/action-slack-notify@v2 From 7d147e7e3f582b8845b09bb9dda92292ee8a230f Mon Sep 17 00:00:00 2001 From: abuabraham-ttd <130511456+abuabraham-ttd@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:49:22 -0800 Subject: [PATCH 2/3] Update publish-all-operators.yaml --- .github/workflows/publish-all-operators.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-all-operators.yaml b/.github/workflows/publish-all-operators.yaml index e03195a85..b97cbc6d7 100644 --- a/.github/workflows/publish-all-operators.yaml +++ b/.github/workflows/publish-all-operators.yaml @@ -249,7 +249,7 @@ jobs: notifyFailure: name: Notify Slack on Failure runs-on: ubuntu-latest - if: failure() && github.ref == 'refs/heads/main' + if: failure() needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI] steps: - name: Send Slack Alert From 2690e6667ab0c73104926bda61a46eeb9cba2f86 Mon Sep 17 00:00:00 2001 From: abuabraham-ttd <130511456+abuabraham-ttd@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:51:32 -0800 Subject: [PATCH 3/3] notify only on main --- .github/workflows/publish-all-operators.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-all-operators.yaml b/.github/workflows/publish-all-operators.yaml index b97cbc6d7..e03195a85 100644 --- a/.github/workflows/publish-all-operators.yaml +++ b/.github/workflows/publish-all-operators.yaml @@ -249,7 +249,7 @@ jobs: notifyFailure: name: Notify Slack on Failure runs-on: ubuntu-latest - if: failure() + if: failure() && github.ref == 'refs/heads/main' needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI] steps: - name: Send Slack Alert