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