Commit 43ba19b9d2f for woocommerce
commit 43ba19b9d2f33802b184b2035422ec9a804dfab6
Author: Jamel Noel Reid <MrJnrman@users.noreply.github.com>
Date: Wed Jun 24 09:38:54 2026 -0500
Use WooCommerce Release Checks runner group for release and bot-PR CI (#65833)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e8ef418643a..d9d8043cba2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,7 +50,7 @@ jobs:
identify-jobs-to-run:
name: 'Analyze changes'
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
needs-code-validation: ${{ steps.target-changes.outputs.needs-code-validation }}
needs-changelog-validation: ${{ steps.target-changes.outputs.needs-changelog-validation }}
@@ -78,7 +78,7 @@ jobs:
name: 'Build Project Jobs'
if: ${{ !cancelled() }}
needs: 'identify-jobs-to-run'
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
lint-jobs: ${{ steps.project-jobs.outputs.lint-jobs }}
test-jobs: ${{ steps.project-jobs.outputs.test-jobs }}
@@ -127,7 +127,7 @@ jobs:
project-lint-jobs:
name: "Lint - ${{ matrix.projectName }} ${{ ( matrix.optional && ' (optional)' ) || '' }}"
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [ 'identify-jobs-to-run', 'project-jobs' ]
if: ${{ !cancelled() && github.event_name == 'pull_request' && needs.identify-jobs-to-run.outputs.needs-code-validation == 'true' && needs.project-jobs.outputs.lint-jobs != '[]' }}
strategy:
@@ -155,7 +155,7 @@ jobs:
project-test-jobs:
name: '${{ matrix.name }}'
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: 'project-jobs'
if: ${{ !cancelled() && ( github.event_name != 'pull_request' || needs.identify-jobs-to-run.outputs.needs-code-validation == 'true' ) && needs.project-jobs.outputs.test-jobs != '[]' }}
env: ${{ matrix.testEnv.envVars }}
@@ -284,7 +284,7 @@ jobs:
# using a job that runs after all the others and either passes or fails based
# on the results of the other jobs in the workflow.
name: 'Evaluate Project Job Statuses'
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [ 'project-jobs', 'project-lint-jobs', 'project-test-jobs', 'validate-changelog', 'validate-markdown', 'validate-syncpack' ]
# This job must run for all trigger types (not just PRs) so that alert-on-failure can access its outputs
if: ${{ !cancelled() }}
@@ -316,7 +316,7 @@ jobs:
alert-on-failure:
name: 'Report results on Slack'
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: ['project-jobs', 'project-lint-jobs', 'project-test-jobs', 'evaluate-project-jobs']
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.repository == 'woocommerce/woocommerce' }}
env:
@@ -370,7 +370,7 @@ jobs:
max-parallel: 1
matrix:
report: ${{ fromJSON( needs.project-jobs.outputs.report-jobs ) }}
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
env:
ARTIFACT_NAME: ${{ matrix.report }}-attempt-${{ github.run_attempt }}
@@ -451,7 +451,7 @@ jobs:
name: 'Validate dependencies version'
if: ${{ !cancelled() && github.event_name == 'pull_request' && needs.identify-jobs-to-run.outputs.needs-syncpack-validation == 'true' }}
needs: [ 'identify-jobs-to-run' ]
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: read
@@ -488,7 +488,7 @@ jobs:
! contains( github.event.pull_request.body, '[x] This Pull Request does not require a changelog' )
}}
needs: [ 'identify-jobs-to-run' ]
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: read
@@ -526,7 +526,7 @@ jobs:
name: 'Validate markdown'
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'trunk' && needs.identify-jobs-to-run.outputs.needs-markdown-validation == 'true' }}
needs: [ 'identify-jobs-to-run' ]
- runs-on: ubuntu-latest
+ runs-on: ${{ github.event.pull_request.user.login == 'woocommercebot' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: read
diff --git a/.github/workflows/release-build-zip-file.yml b/.github/workflows/release-build-zip-file.yml
index 9413a2ad680..f61e7654e5f 100644
--- a/.github/workflows/release-build-zip-file.yml
+++ b/.github/workflows/release-build-zip-file.yml
@@ -43,7 +43,7 @@ env:
jobs:
verify:
name: 'Pre-build verification'
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: write # Required to fetch draft releases for some reason. See https://github.com/cli/cli/issues/9076#issuecomment-2146148572.
outputs:
@@ -210,7 +210,7 @@ jobs:
build:
name: Build release zip file
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [ verify ]
outputs:
artifact-url: ${{ steps.fetch-build-details.outputs.artifact-url }}
@@ -261,7 +261,7 @@ jobs:
create-release:
name: Create GitHub release
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [ build ]
if: ${{ inputs.create_github_release }}
permissions:
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.yml
index 145b30283f8..c80daf09ac9 100644
--- a/.github/workflows/release-bump-version.yml
+++ b/.github/workflows/release-bump-version.yml
@@ -41,7 +41,7 @@ env:
jobs:
bump-version:
name: Bump WooCommerce Version
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Normalize branch input
id: normalize-branch
diff --git a/.github/workflows/release-commits-and-contributors.yml b/.github/workflows/release-commits-and-contributors.yml
index 990cc6d00f8..1d32b2f1ce9 100644
--- a/.github/workflows/release-commits-and-contributors.yml
+++ b/.github/workflows/release-commits-and-contributors.yml
@@ -19,7 +19,7 @@ env:
jobs:
extract-versions:
name: Extract release current and previous versions
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
current_version: ${{ steps.calculate-versions.outputs.current_version }}
previous_version: ${{ steps.calculate-versions.outputs.previous_version }}
@@ -95,7 +95,7 @@ jobs:
count-commits-and-contributors:
name: Count commits and contributors between releases
needs: extract-versions
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
commit_count: ${{ steps.count-commits.outputs.commit_count }}
contributor_count: ${{ steps.count-commits.outputs.contributor_count }}
@@ -131,7 +131,7 @@ jobs:
generate-contributors-list:
name: Generate contributors list
needs: extract-versions
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
contributor_list_path: ${{ steps.generate-contributors-list.outputs.filepath }}
artifact_url: ${{ steps.output-artifact-url.outputs.artifact_url }}
@@ -192,7 +192,7 @@ jobs:
db-updates:
name: Check for database updates
needs: extract-versions
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
has_updates: ${{ steps.check-db-updates.outputs.has_updates }}
updates_list: ${{ steps.check-db-updates.outputs.updates_list }}
@@ -322,7 +322,7 @@ jobs:
send-slack-notification:
name: Send Slack Notification
needs: [extract-versions, count-commits-and-contributors, generate-contributors-list, db-updates]
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Send Slack message
uses: archive/github-actions-slack@a62d71a4ea93e68cbdc37581166b0298bea512e9 # v 2.10.0
diff --git a/.github/workflows/release-compile-changelog.yml b/.github/workflows/release-compile-changelog.yml
index 83728a5e73b..79a7dcc77b1 100644
--- a/.github/workflows/release-compile-changelog.yml
+++ b/.github/workflows/release-compile-changelog.yml
@@ -32,7 +32,7 @@ env:
jobs:
build-prep:
name: Create changelog PR
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: write
pull-requests: write
diff --git a/.github/workflows/release-create-tracking-issue.yml b/.github/workflows/release-create-tracking-issue.yml
index ecb2e13b6e2..2edb828342c 100644
--- a/.github/workflows/release-create-tracking-issue.yml
+++ b/.github/workflows/release-create-tracking-issue.yml
@@ -43,7 +43,7 @@ env:
jobs:
create-tracking-issue:
name: Create Release Tracking Issue
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Parse version and determine template
id: parse-version
diff --git a/.github/workflows/release-trends-analysis.yml b/.github/workflows/release-trends-analysis.yml
index 49de454ebec..972a6460d94 100644
--- a/.github/workflows/release-trends-analysis.yml
+++ b/.github/workflows/release-trends-analysis.yml
@@ -11,7 +11,7 @@ env:
jobs:
analyze-trends-cfes:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Analyze CFEs trends
env:
@@ -35,7 +35,7 @@ jobs:
- When unable to process this comment, please retry once more in five minutes.
" > /dev/null
analyze-trends-prrs:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Analyze PRRs trends
env:
@@ -59,7 +59,7 @@ jobs:
- When unable to process this comment, please retry once more in five minutes.
"
analyze-quality:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
steps:
- name: Analyze quality issues
env:
diff --git a/.github/workflows/release-update-stable-tag.yml b/.github/workflows/release-update-stable-tag.yml
index 85b630cd318..2f5994196bd 100644
--- a/.github/workflows/release-update-stable-tag.yml
+++ b/.github/workflows/release-update-stable-tag.yml
@@ -29,7 +29,7 @@ env:
jobs:
validate-release:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
outputs:
version: ${{ steps.extract-version.outputs.version }}
branch: ${{ steps.extract-version.outputs.branch }}
@@ -193,7 +193,7 @@ jobs:
fi
update-wporg-stable-tag:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: validate-release
steps:
- name: Install SVN
@@ -232,7 +232,7 @@ jobs:
fi
update-gh-stable-tag:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [validate-release, update-wporg-stable-tag]
strategy:
fail-fast: false
@@ -306,7 +306,7 @@ jobs:
fi
notify-release:
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [validate-release, update-wporg-stable-tag, update-gh-stable-tag]
if: ${{ github.event.inputs.allow-revert != 'true' }}
steps:
diff --git a/.github/workflows/release-upload-to-wporg.yml b/.github/workflows/release-upload-to-wporg.yml
index 5ecd4af65bb..ffe48c9baee 100644
--- a/.github/workflows/release-upload-to-wporg.yml
+++ b/.github/workflows/release-upload-to-wporg.yml
@@ -23,7 +23,7 @@ env:
jobs:
get-and-validate-release-asset:
name: Get intended release details
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
permissions:
contents: write # Required to fetch draft releases for some reason. See https://github.com/cli/cli/issues/9076#issuecomment-2146148572.
outputs:
@@ -161,7 +161,7 @@ jobs:
commit:
name: Commit release to WordPress.org
- runs-on: ubuntu-latest
+ runs-on: ${{ github.repository == 'woocommerce/woocommerce' && fromJSON('{"group":"WooCommerce Release Checks"}') || 'ubuntu-latest' }}
needs: [get-and-validate-release-asset]
if: ${{ github.repository == 'woocommerce/woocommerce' }}
permissions: