Build/Test Tools: Hardcode the ref for the workflow dispatch on failure.

This removes the dynamic aspect of the `createWorkflowDispatch()` call that dispatches a Failed Workflow run when another workflow encounters an issue.

By hardcoding `trunk` as the `ref`, the version of the workflow used will always be the latest, most up to date. This ensures older branches receive the bug fixes and improvements made in `trunk` without having to backport them.

Merges [54674] to the 6.1 branch.
See #55652.

git-svn-id: https://develop.svn.wordpress.org/branches/6.1@54680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2022-10-24 17:11:37 +00:00
parent 92c15694dd
commit 026620086b
7 changed files with 7 additions and 7 deletions

View File

@ -207,7 +207,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -155,7 +155,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -123,7 +123,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -143,7 +143,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -264,7 +264,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -218,7 +218,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}

View File

@ -197,7 +197,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ github.ref_name }}',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}