Fix encoding bug with 'action:<number>' version
This commit is contained in:
2
dist/setup.js
vendored
2
dist/setup.js
vendored
@@ -59,7 +59,7 @@ function getDownloadUrl(options) {
|
|||||||
cacheKey: null,
|
cacheKey: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const release = options?.version ?? "latest";
|
const release = encodeURIComponent(options?.version ?? "latest");
|
||||||
const os = options?.os ?? process.platform;
|
const os = options?.os ?? process.platform;
|
||||||
const arch = options?.arch ?? process.arch;
|
const arch = options?.arch ?? process.arch;
|
||||||
const avx2 = options?.avx2 ?? true;
|
const avx2 = options?.avx2 ?? true;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ function getDownloadUrl(options?: {
|
|||||||
cacheKey: null,
|
cacheKey: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const release = options?.version ?? "latest";
|
const release = encodeURIComponent(options?.version ?? "latest");
|
||||||
const os = options?.os ?? process.platform;
|
const os = options?.os ?? process.platform;
|
||||||
const arch = options?.arch ?? process.arch;
|
const arch = options?.arch ?? process.arch;
|
||||||
const avx2 = options?.avx2 ?? true;
|
const avx2 = options?.avx2 ?? true;
|
||||||
|
|||||||
Reference in New Issue
Block a user