Skip to content

Commit f754fdb

Browse files
authored
Allow for scheduling CI on any branch on demand (#14433)
1 parent 0f0d5a3 commit f754fdb

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci_linux.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_dispatch:
9+
inputs:
10+
target-ref:
11+
description: Branch, tag, or SHA to test
12+
required: true
13+
default: main
814

915
env:
1016
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -15,3 +21,4 @@ jobs:
1521
with:
1622
runner-env: ubuntu-24.04
1723
platform: linux
24+
checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }}

.github/workflows/ci_mac.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_dispatch:
9+
inputs:
10+
target-ref:
11+
description: Branch, tag, or SHA to test
12+
required: true
13+
default: main
814

915
env:
1016
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -15,4 +21,5 @@ jobs:
1521
with:
1622
runner-env: macos-15
1723
platform: mac
24+
checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }}
1825
yarn-args: --network-timeout 100000

.github/workflows/ci_windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_dispatch:
9+
inputs:
10+
target-ref:
11+
description: Branch, tag, or SHA to test
12+
required: true
13+
default: main
814

915
env:
1016
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -15,3 +21,4 @@ jobs:
1521
with:
1622
runner-env: windows-2025
1723
platform: windows
24+
checkout-ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target-ref || github.ref }}

.github/workflows/job-compile-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# Expects 'mac', 'linux', or 'windows'
1212
required: true
1313
type: string
14+
checkout-ref:
15+
required: false
16+
type: string
1417
yarn-args:
1518
type: string
1619

@@ -23,6 +26,8 @@ jobs:
2326

2427
steps:
2528
- uses: actions/checkout@v5
29+
with:
30+
ref: ${{ inputs.checkout-ref }}
2631

2732
- name: Use Node.js 24
2833
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)