From 4e226abf756edee9407156a3bc3ccc36646af5bd Mon Sep 17 00:00:00 2001 From: Nipuna Ranasinghe Date: Wed, 6 Mar 2024 15:14:59 +0530 Subject: [PATCH] Disable notifications for build workflow failures --- .github/workflows/ci.yml | 16 ---------------- .github/workflows/daily-build.yml | 15 --------------- 2 files changed, 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcf8321..2f8647c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,19 +44,3 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 - - # Send notification when build fails - - name: Alert notifier on failure - if: failure() && (github.event.action == 'check_connector_for_breaking_changes') - run: | - curl -X POST \ - 'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \ - --header 'Accept: application/vnd.github.v3+json' \ - --header 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \ - --data-raw '{ - "event_type": "notify-ballerinax-connector-build-failure", - "client_payload": { - "repoName": "module-ballerinax-azure.eventhub", - "workflow": "CI" - } - }' diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index b7c9427..2310554 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -40,18 +40,3 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl -X POST \ - 'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \ - -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \ - --data "{ - \"event_type\": \"notify-build-failure\", - \"client_payload\": { - \"repoName\": \"module-ballerinax-azure.eventhub\" - } - }"