Skip to content

Commit a7f3b49

Browse files
committed
[ci] Make some workflows dispatchable
The previous checks for prerelease_commit_sha was incorrectly implemented for devtools regression tests so I fixed it. I also made some other workflows dispatchable so they can be manually run from GitHub's UI as needed. Test plan: https://github.com/facebook/react/actions/runs/10165564989 ghstack-source-id: b30c7b4 Pull Request resolved: #30529
1 parent 927ba57 commit a7f3b49

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/devtools_regression_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
- cron: 0 0 * * *
66
workflow_dispatch:
77
inputs:
8-
prerelease_commit_sha:
8+
commit_sha:
99
required: false
10+
type: string
1011

1112
env:
1213
TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -15,7 +16,6 @@ env:
1516

1617
jobs:
1718
download_build:
18-
if: inputs.prerelease_commit_sha == ''
1919
name: Download base build
2020
runs-on: ubuntu-latest
2121
steps:
@@ -37,7 +37,7 @@ jobs:
3737
- name: Download react-devtools artifacts for base revision
3838
run: |
3939
git fetch origin main
40-
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=$(git rev-parse origin/main)
40+
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || '$(git rev-parse origin/main)' }}
4141
- name: Display structure of build
4242
run: ls -R build
4343
- name: Archive build

.github/workflows/runtime_commit_artifacts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
types: [completed]
77
branches:
88
- main
9+
workflow_dispatch:
10+
inputs:
11+
commit_sha:
12+
required: false
13+
type: string
914

1015
env:
1116
TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -72,7 +77,7 @@ jobs:
7277
working-directory: scripts/release
7378
- name: Download artifacts for base revision
7479
run: |
75-
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ github.event.workflow_run.head_sha }}
80+
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.event.workflow_run.head_sha }}
7681
- name: Display structure of build
7782
run: ls -R build
7883
- name: Strip @license from eslint plugin and react-refresh

.github/workflows/runtime_fuzz_tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
name: (Runtime) Fuzz tests
2+
23
on:
34
schedule:
4-
- cron: 0 * * * *
5+
- cron: 0 * * * *
56
push:
67
branches:
78
- main
89
workflow_dispatch:
9-
inputs:
10-
prerelease_commit_sha:
11-
required: false
1210

1311
env:
1412
TZ: /usr/share/zoneinfo/America/Los_Angeles
1513

1614
jobs:
1715
test_fuzz:
18-
if: inputs.prerelease_commit_sha == ''
1916
runs-on: ubuntu-latest
20-
env:
21-
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
2217
steps:
2318
- uses: actions/[email protected]
2419
- uses: actions/setup-node@v4

.github/workflows/shared_stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# Run hourly
66
- cron: '0 * * * *'
7+
workflow_dispatch:
78

89
env:
910
TZ: /usr/share/zoneinfo/America/Los_Angeles

0 commit comments

Comments
 (0)