name: Remote Dispatch Action Initiator on: push: jobs: ping-pong: runs-on: ubuntu-latest steps: - name: PING - Dispatch initiating repository event if: github.event.action != 'pong' run: curl -X POST https://api.github.com/repos/catgirlsrodeo/dev.catgirls.rodeo/dispatches -H 'accept: application/vnd.github.everest-preview+json' -u ${{ secrets.access_token }} --data '{"event_type": "trigger_build", "client_payload": { "repository": "'"$github_repository"'" }}'