From 3cb4ae16ab5bfd18033d93258ca7c7bd74c8110d Mon Sep 17 00:00:00 2001 From: netmindz Date: Sat, 22 Feb 2025 10:21:19 +0000 Subject: [PATCH] Create pr-merge.yaml --- .github/workflows/pr-merge.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pr-merge.yaml diff --git a/.github/workflows/pr-merge.yaml b/.github/workflows/pr-merge.yaml new file mode 100644 index 000000000..df8ae2253 --- /dev/null +++ b/.github/workflows/pr-merge.yaml @@ -0,0 +1,13 @@ + name: Notify Discord on PR Merge + on: + pull_request: + types: [closed] + + jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Discord notification + if: github.event.pull_request.merged == true + run: | + curl -H "Content-Type: application/json" -d '{"content": "Pull Request #{{ github.event.pull_request.number }} merged by {{ github.actor }}"}' ${{ secrets.DISCORD_WEBHOOK_BETA_TESTERS }}