Skip to content

Commit

Permalink
feat: add discord pr bot workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marfanr committed Aug 27, 2024
1 parent d43492b commit 156586a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dispatch-discord-pr-bot.yml
Original file line number Diff line number Diff line change
@@ -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' }}"
}

0 comments on commit 156586a

Please sign in to comment.