mirror of
https://github.com/xivdev/EXDSchema.git
synced 2025-06-07 08:37:45 +00:00
Update CI/CD
This commit is contained in:
parent
54e1670869
commit
b31b284a15
1 changed files with 5 additions and 19 deletions
24
.github/workflows/dispatch.yml
vendored
24
.github/workflows/dispatch.yml
vendored
|
@ -11,29 +11,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Repository Dispatch (PR)
|
- name: Repository Dispatch
|
||||||
uses: peter-evans/repository-dispatch@v3
|
uses: peter-evans/repository-dispatch@v3
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
with:
|
with:
|
||||||
event-type: version-pr
|
event-type: "${{ github.event_name == 'push' && 'version-push' || 'version-pr' }}"
|
||||||
client-payload: >
|
client-payload: >
|
||||||
{
|
{
|
||||||
"actor": "${{ github.event.pull_request.user.login }}",
|
"actor": "${{ github.event.pull_request.user.login || github.actor }}",
|
||||||
"pr_number": "${{ github.event.number }}",
|
"pr_number": "${{ github.event.number }}",
|
||||||
"head_ref": "${{ github.event.pull_request.head.ref }}",
|
"head_ref": "${{ github.head_ref || github.ref }}",
|
||||||
"head_sha": "${{ github.event.pull_request.head.sha }}",
|
|
||||||
"base_ref": "${{ github.event.pull_request.base.ref }}"
|
|
||||||
}
|
|
||||||
|
|
||||||
- name: Repository Dispatch (Push)
|
|
||||||
uses: peter-evans/repository-dispatch@v3
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
with:
|
|
||||||
event-type: version-push
|
|
||||||
client-payload: >
|
|
||||||
{
|
|
||||||
"actor": "${{ github.actor }}",
|
|
||||||
"head_ref": "${{ github.ref }}",
|
|
||||||
"head_sha": "${{ github.sha }}",
|
"head_sha": "${{ github.sha }}",
|
||||||
"base_ref": "${{ github.base_ref }}"
|
"base_ref": "${{ github.base_ref || github.ref_name }}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue