Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fc7595f

Browse files
authoredApr 15, 2025
[web] fix 'npm run pull:wasm' for main branch (#24429)
### Description <!-- Describe your changes. --> Change `status=completed` to `status=success`, because job cancelling is also considered "completed". See https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow--parameters
1 parent ff607b4 commit fc7595f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎js/web/script/pull-prebuilt-wasm-artifacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async function main() {
189189
if (!run) {
190190
// API reference: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow
191191
const mainRunData = await downloadJson(
192-
`https://api.github.com/repos/Microsoft/onnxruntime/actions/workflows/152051496/runs?branch=main${allowImcomplete ? '' : '&status=completed'}&per_page=1&exclude_pull_requests=1`,
192+
`https://api.github.com/repos/Microsoft/onnxruntime/actions/workflows/152051496/runs?branch=main${allowImcomplete ? '' : '&status=success'}&per_page=1&exclude_pull_requests=1`,
193193
);
194194
if (mainRunData.workflow_runs.length === 0) {
195195
throw new Error('No build found');

0 commit comments

Comments
 (0)
Please sign in to comment.