From ad6e46965ea5ee85601e9af038c5b12d6b90e275 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 7 May 2026 16:26:10 -0700 Subject: [PATCH 1/3] Allow for scheduling CI on any branch on demand --- .github/workflows/ci_linux.yml | 7 +++++++ .github/workflows/job-compile-and-test.yml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml index 6b1c3f63e..8327593ee 100644 --- a/.github/workflows/ci_linux.yml +++ b/.github/workflows/ci_linux.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,3 +21,4 @@ jobs: with: runner-env: ubuntu-24.04 platform: linux + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref_name }} diff --git a/.github/workflows/job-compile-and-test.yml b/.github/workflows/job-compile-and-test.yml index 884c61c91..bbdea87f1 100644 --- a/.github/workflows/job-compile-and-test.yml +++ b/.github/workflows/job-compile-and-test.yml @@ -11,6 +11,9 @@ on: # Expects 'mac', 'linux', or 'windows' required: true type: string + checkout-ref: + required: false + type: string yarn-args: type: string @@ -23,6 +26,8 @@ jobs: steps: - uses: actions/checkout@v5 + with: + ref: ${{ inputs.checkout-ref }} - name: Use Node.js 24 uses: actions/setup-node@v4 From 55419f5ac1c4b82ca72b293255b4afe39ba6dd7c Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 7 May 2026 16:31:27 -0700 Subject: [PATCH 2/3] suggested fix --- .github/workflows/ci_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml index 8327593ee..3b6761ce4 100644 --- a/.github/workflows/ci_linux.yml +++ b/.github/workflows/ci_linux.yml @@ -21,4 +21,4 @@ jobs: with: runner-env: ubuntu-24.04 platform: linux - checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref_name }} + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }} From 33ea61b7d490ace9d899c79efbe8ca885ed458c1 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 7 May 2026 16:39:48 -0700 Subject: [PATCH 3/3] update all the files since a new parameter is added to the template --- .github/workflows/ci_mac.yml | 7 +++++++ .github/workflows/ci_windows.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ci_mac.yml b/.github/workflows/ci_mac.yml index 1ecbcd5b0..40acb5f1a 100644 --- a/.github/workflows/ci_mac.yml +++ b/.github/workflows/ci_mac.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,4 +21,5 @@ jobs: with: runner-env: macos-15 platform: mac + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }} yarn-args: --network-timeout 100000 diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml index bcf98b07c..fb75c2673 100644 --- a/.github/workflows/ci_windows.yml +++ b/.github/workflows/ci_windows.yml @@ -5,6 +5,12 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: + inputs: + target-ref: + description: Branch, tag, or SHA to test + required: true + default: main env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -15,3 +21,4 @@ jobs: with: runner-env: windows-2025 platform: windows + checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }}