From 27ad3bc8f6f0d4dcfee335bed898050d543beddb Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Thu, 3 Sep 2026 10:42:26 -0400 Subject: [PATCH] Add input to the test Gutenberg build workflow. This adds a new input for the reusable workflow responsible for testing the Gutenberg build script to allow branches to use a specific branch in the `gutenberg` repository. This allows for a similar pattern to that used in the end to end testing workflow where a specific version of the Gutenberg plugin is pinned once support for the branch of WordPress running the workflow is dropped. --- .github/workflows/reusable-test-gutenberg-build-process.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/reusable-test-gutenberg-build-process.yml b/.github/workflows/reusable-test-gutenberg-build-process.yml index a538daeed6779..f20f726ca5905 100644 --- a/.github/workflows/reusable-test-gutenberg-build-process.yml +++ b/.github/workflows/reusable-test-gutenberg-build-process.yml @@ -16,6 +16,11 @@ on: required: false type: 'string' default: 'src' + gutenberg-branch: + description: 'The branch in the Gutenberg repository that should be tested against.' + required: false + type: 'string' + default: '' env: GUTENBERG_DIRECTORY: ${{ inputs.directory == 'build' && 'build' || 'src' }}/wp-content/plugins/gutenberg @@ -58,6 +63,7 @@ jobs: uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: repository: 'WordPress/gutenberg' + ref: ${{ inputs.gutenberg-branch && inputs.gutenberg-branch || 'trunk' }} path: ${{ env.GUTENBERG_DIRECTORY }} show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} persist-credentials: false