From 032b39b8c486af7bc58e06312ba5b53613273197 Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Tue, 6 Feb 2024 15:33:36 +0000 Subject: [PATCH] chore: remove notify-breaking Signed-off-by: Gregory Hill --- .github/workflows/notify-breaking.yml | 30 --------------------------- 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/notify-breaking.yml diff --git a/.github/workflows/notify-breaking.yml b/.github/workflows/notify-breaking.yml deleted file mode 100644 index b0e142ab14..0000000000 --- a/.github/workflows/notify-breaking.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Breaking change notification - -on: - pull_request: - types: [opened, synchronize] - -jobs: - check-commit-messages: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check Commit Messages - id: check_commit_messages - run: | - commit_messages=$(git log --format=%B ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}) - if echo "$commit_messages" | grep -q '!' || echo "$commit_messages" | grep -q '[BREAKING]'; then - echo "BREAKING_CHANGE_DETECTED=true" >> $GITHUB_ENV - fi - - - name: Send Discord Notification - run: | - curl -X POST -H "Content-Type: application/json" \ - --data '{"content": "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}"}' \ - "${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}" - if: env.BREAKING_CHANGE_DETECTED == 'true'