WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c774177

Browse files
committed
feat: add discord pr bot workflows
1 parent 0bf6866 commit c774177

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Dispatch Discord PR Bot
2+
3+
on:
4+
pull_request:
5+
types: [opened, closed, reopened]
6+
workflow_dispatch:
7+
8+
jobs:
9+
dispatch-discord-pr-bot:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: peter-evans/repository-dispatch@v3
13+
with:
14+
repository: ichiro-its/${{ vars.DISCORD_PR_BOT_REPO }}
15+
event-type: pull_request
16+
client-payload: |
17+
{
18+
"repository": "${{ github.event.repository.name }}",
19+
"pr_type": "${{ github.event.action || 'opened' }}"
20+
}

0 commit comments

Comments
 (0)