[js/web] update branch name for pull:wasm (#12548)

* [js/web] update branch name for pull:wasm

* revise message
This commit is contained in:
Yulong Wang 2022-08-12 15:46:36 -07:00 committed by GitHub
parent cc9b3e1c37
commit 95f2a3e7e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -161,7 +161,7 @@ This project is a library for running ONNX models on browsers. It is the success
- Setup by script.
In `<ORT_ROOT>/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest master branch from CI pipeline.
In `<ORT_ROOT>/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest main branch from CI pipeline.
- Download artifacts from pipeline manually.

View file

@ -8,7 +8,7 @@
// WebAssembly side, so there is no need to rebuild WebAssembly.
//
// It performs the following operations:
// 1. query build ID for latest successful build on master branch
// 1. query build ID for latest successful build on main branch
// 2. query download URL of build artifacts
// 3. download and unzip the files to folders
//
@ -80,11 +80,11 @@ downloadJson(
'&$top=1' +
'&repositoryId=Microsoft/onnxruntime' +
'&repositoryType=GitHub' +
'&branchName=refs/heads/master',
'&branchName=refs/heads/main',
data => {
const buildId = data.value[0].id;
console.log(`=== Found latest master build : ${buildId} ===`);
console.log(`=== Found latest build on main branch: ${buildId} ===`);
// API reference: https://docs.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/get%20artifact
downloadJson(