1
Fork 0
mirror of https://github.com/xivdev/EXDSchema.git synced 2025-06-07 16:47:45 +00:00
EXDSchema/.github/workflows/dispatch.yml
2025-03-11 08:57:26 -07:00

25 lines
743 B
YAML

name: Dispatch
on:
pull_request_target:
types: [opened, synchronize, reopened]
push:
jobs:
dispatch:
name: Dispatch
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
event-type: "${{ github.event_name == 'push' && 'version-push' || 'version-pr' }}"
client-payload: >
{
"actor": "${{ github.event.pull_request.user.login || github.actor }}",
"pr_number": "${{ github.event.number }}",
"head_ref": "${{ github.head_ref || github.ref }}",
"head_sha": "${{ github.sha }}",
"base_ref": "${{ github.base_ref || github.ref_name }}"
}