mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 13:27:57 +01:00
22 lines
761 B
YAML
22 lines
761 B
YAML
name: Remote Dispatch Action Initiator
|
|
|
|
on:
|
|
push:
|
|
repository_dispatch:
|
|
|
|
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/jobobby04/TachiyomiSYPreview/dispatches \
|
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
|
-u ${{ secrets.ACCESS_TOKEN }} \
|
|
--data '{"event_type": "ping", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
|
|
- name: ACK - Acknowledge pong from remote repository
|
|
if: github.event.action == 'pong'
|
|
run: |
|
|
echo "PONG received from '${{ github.event.client_payload.repository }}'"
|