summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/send_autobuild_webdocs_ping.yml
blob: 595ce31568da4a1da607e3db0c47ae7ae72c06c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/marcnuri-demo/actions-remote-dispatch-b/dispatches \
          -H 'Accept: application/vnd.github.everest-preview+json' \
          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"'" }}'