diff --git a/.github/workflows/discord-pr-notify.yml b/.github/workflows/discord-pr-notify.yml index 7c38b43bfd..65e931cf22 100644 --- a/.github/workflows/discord-pr-notify.yml +++ b/.github/workflows/discord-pr-notify.yml @@ -11,11 +11,10 @@ jobs: if: github.head_ref != 'changeset-release/main' steps: - name: Send Discord Notification - uses: Ilshidur/action-discord@master - with: - args: | - šŸš€ **New PR:** ${{ github.event.pull_request.title }} - šŸ”— <${{ github.event.pull_request.html_url }}> - šŸ‘¤ **Author:** ${{ github.event.pull_request.user.login }} - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + run: | + curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \ + -H "Content-Type: application/json" \ + -d '{ + "content": "šŸš€ **New PR:** ${{ github.event.pull_request.title }}\nšŸ”— <${{ github.event.pull_request.html_url }}>\nšŸ‘¤ **Author:** ${{ github.event.pull_request.user.login }}", + "thread_name": "${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}" + }'