Skip to content

Commit

Permalink
Create repo dispatch action
Browse files Browse the repository at this point in the history
  • Loading branch information
irealva authored Aug 26, 2021
1 parent fc34373 commit 858c891
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Repo Events Repository Dispatch

on:
- issues
- issue_comment
- pull_request

jobs:
preflight-job:
name: Dispatch
runs-on: ubuntu-latest
steps:
- name: Print Outputs
env:
outputs: ${{ toJSON(github) }}
run: |
echo outputs: $outputs
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
repository: githubocto/next-devex-workflows # repo to send event to
event-type: repoevents # name of the custom event
client-payload: '{"event": ${{ toJSON(github) }}}'

0 comments on commit 858c891

Please sign in to comment.