ci: Pass branch parameter to workflows (#21075)

This commit is contained in:
Declan Carroll
2025-10-23 10:00:32 +01:00
committed by GitHub
parent 8e7eb98ec6
commit 83d8b7e720
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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:
@@ -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