From a4573a99375d361c84f678610c41efab5f942020 Mon Sep 17 00:00:00 2001 From: marfanr Date: Tue, 27 Aug 2024 17:20:33 +0700 Subject: [PATCH] feat: add discord pr bot workflows --- .github/workflows/dispatch-discord-pr-bot.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/dispatch-discord-pr-bot.yml diff --git a/.github/workflows/dispatch-discord-pr-bot.yml b/.github/workflows/dispatch-discord-pr-bot.yml new file mode 100644 index 0000000..d280fb2 --- /dev/null +++ b/.github/workflows/dispatch-discord-pr-bot.yml @@ -0,0 +1,20 @@ +name: Dispatch Discord PR Bot + +on: + pull_request: + types: [opened, closed, reopened] + workflow_dispatch: + +jobs: + dispatch-discord-pr-bot: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v3 + with: + repository: ichiro-its/${{ vars.DISCORD_PR_BOT_REPO }} + event-type: pull_request + client-payload: | + { + "repository": "${{ github.event.repository.name }}", + "pr_type": "${{ github.event.action || 'opened' }}" + } \ No newline at end of file