From 0c3cdb9a90b1a5087f07ab7bf2f0dc125a333081 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 24 Oct 2022 15:18:37 +0000 Subject: [PATCH] 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. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54674 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/end-to-end-tests.yml | 2 +- .github/workflows/javascript-tests.yml | 2 +- .github/workflows/php-compatibility.yml | 2 +- .github/workflows/phpunit-tests.yml | 2 +- .github/workflows/test-coverage.yml | 2 +- .github/workflows/test-npm.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 3f9e133db4..80d70c66e4 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -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 }}' } diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index dfa8d18e3c..1d642ff422 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -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 }}' } diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index bafbde8bf5..2eeeb9a805 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -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 }}' } diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 328aa2f665..3b6802aac7 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -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 }}' } diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 38c1365aea..c2276ca035 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -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 }}' } diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index f89be91eba..f91647baa0 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -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 }}' } diff --git a/.github/workflows/test-npm.yml b/.github/workflows/test-npm.yml index 56b2ed1b09..7f38dd7794 100644 --- a/.github/workflows/test-npm.yml +++ b/.github/workflows/test-npm.yml @@ -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 }}' }