From f93157da70d922a496c6099a02b49e5515bbda2b Mon Sep 17 00:00:00 2001 From: Nipuna Ranasinghe Date: Thu, 4 Apr 2024 08:32:06 +0530 Subject: [PATCH] Disable build failure notifications --- .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 4a3ed87..0f5c775 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-slack", - "workflow": "CI" - } - }' diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index aa7b07c..dc01457 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-slack\" - } - }"