diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index be4456d9189e4..6a6cc5858e33c 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -24,6 +24,10 @@ on: required: false type: 'boolean' default: true + gutenberg-version: + description: 'A specific version of Gutenberg to install.' + required: false + type: 'string' env: LOCAL_DIR: build @@ -113,7 +117,7 @@ jobs: - name: Install Gutenberg if: ${{ inputs.install-gutenberg }} - run: npm run env:cli -- plugin install gutenberg --path=/var/www/${{ env.LOCAL_DIR }} + run: npm run env:cli -- plugin install gutenberg${{ inputs.gutenberg-version && format( ' --version={0}', inputs.gutenberg-version ) || '' }} --path=/var/www/${{ env.LOCAL_DIR }} - name: Install additional languages run: |