From 83d8b7e7204ce373a271e474056c4d82864cfe38 Mon Sep 17 00:00:00 2001 From: Declan Carroll Date: Thu, 23 Oct 2025 10:00:32 +0100 Subject: [PATCH] ci: Pass branch parameter to workflows (#21075) --- .github/workflows/e2e-reusable.yml | 2 ++ .github/workflows/e2e-tests.yml | 2 ++ .github/workflows/playwright-test-reusable.yml | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml index a67b76df770..35f9672a6e8 100644 --- a/.github/workflows/e2e-reusable.yml +++ b/.github/workflows/e2e-reusable.yml @@ -52,6 +52,8 @@ jobs: containers: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.containers || '[1]' ) }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ inputs.branch || github.ref }} - name: Set up and build uses: ./.github/actions/setup-nodejs-blacksmith diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7c62d9704c9..3b1ad762aef 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -53,6 +53,8 @@ jobs: run-playwright-tests: name: Playwright uses: ./.github/workflows/playwright-test-reusable.yml + with: + branch: ${{ github.event.inputs.branch || 'master' }} secrets: inherit calls-success-url-notify: diff --git a/.github/workflows/playwright-test-reusable.yml b/.github/workflows/playwright-test-reusable.yml index f85688cc94d..986f57d72a5 100644 --- a/.github/workflows/playwright-test-reusable.yml +++ b/.github/workflows/playwright-test-reusable.yml @@ -3,6 +3,10 @@ name: Playwright Tests - Reusable on: workflow_call: inputs: + branch: + description: 'GitHub branch to test.' + required: false + type: string test-mode: description: 'Test mode: local (pnpm start from local), docker-build, or docker-pull' required: false @@ -60,6 +64,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 1 + ref: ${{ inputs.branch || github.ref }} - name: Setup Environment uses: ./.github/actions/setup-nodejs-blacksmith