Skip to content

Commit

Permalink
add event payload
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Jun 28, 2022
1 parent 0fafc5c commit 9b2387e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,29 @@ jobs:
matrix:

This comment has been minimized.

Copy link
@israpps

israpps Jun 28, 2022

Author Member

SORRY

I accidentally commited!

I´m still used to not being a member...

repo: ['wlaunchELF', 'Open-PS2-Loader', 'isjpcm', 'Fceumm-PS2']
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Send Compile action
run: |
export DISPATCH_ACTION="$(echo run_build)"
echo "NEW_DISPATCH_ACTION=$DISPATCH_ACTION" >> $GITHUB_ENV
- name: Dispatch to organization repositories
if: ${{ github.event_name }} != 'repository_dispatch'
uses: peter-evans/repository-dispatch@v1
with:
repository: ${{ github.repository_owner }}/${{ matrix.repo }}
token: ${{ secrets.DISPATCH_TOKEN }}
event-type: ${{ env.NEW_DISPATCH_ACTION }}
client-payload: '{"ref": "${{ github.ref }}"}'

- name: "Dispatch to organization repositories (with payload)"
if: ${{ github.event_name }} == 'repository_dispatch'
uses: peter-evans/repository-dispatch@v1
with:
repository: ${{ github.repository_owner }}/${{ matrix.repo }}
token: ${{ secrets.DISPATCH_TOKEN }}
event-type: ${{ env.NEW_DISPATCH_ACTION }}
client-payload: '{"ref": "${{ github.ref }}", "parent:" "${{ github.event.client_payload.parent }}", "parent_sha": "${{ github.event.client_payload.parent_sha }}"}'

0 comments on commit 9b2387e

Please sign in to comment.