Skip to content

Commit 93cae02

Browse files
authored
Create repo dispatch events
1 parent 0dfc335 commit 93cae02

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/dispatch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Repo Events Repository Dispatch
2+
3+
on:
4+
- issues
5+
- issue_comment
6+
- pull_request
7+
8+
jobs:
9+
preflight-job:
10+
name: Dispatch
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Print Outputs
14+
env:
15+
outputs: ${{ toJSON(github) }}
16+
run: |
17+
echo outputs: $outputs
18+
- name: Repository Dispatch
19+
uses: peter-evans/repository-dispatch@v1
20+
with:
21+
token: ${{ secrets.PAT }}
22+
repository: githubocto/next-devex-workflows # repo to send event to
23+
event-type: repoevents # name of the custom event
24+
client-payload: '{"event": ${{ toJSON(github) }}}'

0 commit comments

Comments
 (0)