From 858c8916c210723971fd0d6e1ea817b455a2cde2 Mon Sep 17 00:00:00 2001 From: Irene Alvarado Date: Thu, 26 Aug 2021 09:43:23 -0400 Subject: [PATCH] Create repo dispatch action --- .github/workflows/dispatch.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/dispatch.yml diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 0000000..e9edae7 --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -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) }}}'