@samitouri / QOS-React-1 / commits / 996d0eb055

Allow runtime_build_and_test action to trigger manually (#33796)

Jack Pope committed Jul 16, 2025 at 12:41 UTC 996d0eb05596ac40209a0a82810741a01442e97e
1 file changed +25 -19
.github/workflows/runtime_build_and_test.yml
+25 -19
@@ -6,6 +6,12 @@ on:
6 pull_request:
7 paths-ignore:
8 - compiler/**
9 + workflow_dispatch:
10 + inputs:
11 + commit_sha:
12 + required: false
13 + type: string
14 + default: ''
15
16 permissions: {}
17
@@ -28,7 +34,7 @@ jobs:
34 steps:
35 - uses: actions/checkout@v4
36 with:
31 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
37 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
38 - name: Check cache hit
39 uses: actions/cache/restore@v4
40 id: node_modules
@@ -69,7 +75,7 @@ jobs:
75 steps:
76 - uses: actions/checkout@v4
77 with:
72 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
78 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
79 - name: Check cache hit
80 uses: actions/cache/restore@v4
81 id: node_modules
@@ -117,7 +123,7 @@ jobs:
123 steps:
124 - uses: actions/checkout@v4
125 with:
120 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
126 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
127 - uses: actions/github-script@v7
128 id: set-matrix
129 with:
@@ -136,7 +142,7 @@ jobs:
142 steps:
143 - uses: actions/checkout@v4
144 with:
139 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
145 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
146 - uses: actions/setup-node@v4
147 with:
148 node-version-file: '.nvmrc'
@@ -166,7 +172,7 @@ jobs:
172 steps:
173 - uses: actions/checkout@v4
174 with:
169 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
175 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
176 - uses: actions/setup-node@v4
177 with:
178 node-version-file: '.nvmrc'
@@ -198,7 +204,7 @@ jobs:
204 steps:
205 - uses: actions/checkout@v4
206 with:
201 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
207 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
208 - uses: actions/setup-node@v4
209 with:
210 node-version-file: '.nvmrc'
@@ -254,7 +260,7 @@ jobs:
260 steps:
261 - uses: actions/checkout@v4
262 with:
257 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
263 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
264 - uses: actions/setup-node@v4
265 with:
266 node-version-file: '.nvmrc'
@@ -325,7 +331,7 @@ jobs:
331 steps:
332 - uses: actions/checkout@v4
333 with:
328 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
334 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
335 - uses: actions/setup-node@v4
336 with:
337 node-version-file: '.nvmrc'
@@ -420,7 +426,7 @@ jobs:
426 steps:
427 - uses: actions/checkout@v4
428 with:
423 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
429 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
430 - uses: actions/setup-node@v4
431 with:
432 node-version-file: '.nvmrc'
@@ -465,7 +471,7 @@ jobs:
471 steps:
472 - uses: actions/checkout@v4
473 with:
468 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
474 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
475 - uses: actions/setup-node@v4
476 with:
477 node-version-file: '.nvmrc'
@@ -493,7 +499,7 @@ jobs:
499 merge-multiple: true
500 - name: Display structure of build
501 run: ls -R build
496 - - run: echo ${{ github.event.pull_request.head.sha || github.sha }} >> build/COMMIT_SHA
502 + - run: echo ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} >> build/COMMIT_SHA
503 - name: Scrape warning messages
504 run: |
505 mkdir -p ./build/__test_utils__
@@ -530,7 +536,7 @@ jobs:
536 steps:
537 - uses: actions/checkout@v4
538 with:
533 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
539 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
540 - uses: actions/setup-node@v4
541 with:
542 node-version-file: '.nvmrc'
@@ -570,7 +576,7 @@ jobs:
576 steps:
577 - uses: actions/checkout@v4
578 with:
573 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
579 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
580 - uses: actions/setup-node@v4
581 with:
582 node-version-file: '.nvmrc'
@@ -607,7 +613,7 @@ jobs:
613 steps:
614 - uses: actions/checkout@v4
615 with:
610 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
616 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
617 - uses: actions/setup-node@v4
618 with:
619 node-version-file: '.nvmrc'
@@ -648,7 +654,7 @@ jobs:
654 steps:
655 - uses: actions/checkout@v4
656 with:
651 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
657 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
658 - uses: actions/setup-node@v4
659 with:
660 node-version-file: '.nvmrc'
@@ -722,7 +728,7 @@ jobs:
728 steps:
729 - uses: actions/checkout@v4
730 with:
725 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
731 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
732 - uses: actions/setup-node@v4
733 with:
734 node-version-file: '.nvmrc'
@@ -779,7 +785,7 @@ jobs:
785 steps:
786 - uses: actions/checkout@v4
787 with:
782 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
788 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
789 - uses: actions/setup-node@v4
790 with:
791 node-version-file: '.nvmrc'
@@ -824,7 +830,7 @@ jobs:
830 steps:
831 - uses: actions/checkout@v4
832 with:
827 - ref: ${{ github.event.pull_request.head.sha || github.sha }}
833 + ref: ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }}
834 - uses: actions/setup-node@v4
835 with:
836 node-version-file: '.nvmrc'
@@ -873,7 +879,7 @@ jobs:
879 node ./scripts/print-warnings/print-warnings.js > build/__test_utils__/ReactAllWarnings.js
880 - name: Display structure of build for PR
881 run: ls -R build
876 - - run: echo ${{ github.event.pull_request.head.sha || github.sha }} >> build/COMMIT_SHA
882 + - run: echo ${{ github.event.inputs.commit_sha != '' && github.event.inputs.commit_sha || github.event.pull_request.head.sha || github.sha }} >> build/COMMIT_SHA
883 - run: node ./scripts/tasks/danger
884 - name: Archive sizebot results
885 uses: actions/upload-artifact@v4