From 2e5b251a48418266dce3fdbad56dfa8168a35405 Mon Sep 17 00:00:00 2001 From: ns212 Date: Wed, 2 Aug 2023 10:47:58 +0000 Subject: [PATCH] chore: update discord notifications --- .github/workflows/notify-breaking.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/notify-breaking.yml b/.github/workflows/notify-breaking.yml index 5c124b7487..aedff146f4 100644 --- a/.github/workflows/notify-breaking.yml +++ b/.github/workflows/notify-breaking.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -23,8 +23,8 @@ jobs: fi - name: Send Discord Notification - uses: Ilshidur/action-discord@master - with: - args: "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}" - webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }} + 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'