Fix encoding bug with 'action:<number>' version

This commit is contained in:
Ashcon Partovi 2023-03-01 16:49:16 -08:00
parent 13974bf408
commit 1c8c9a7615
2 changed files with 2 additions and 2 deletions

2
dist/setup.js vendored
View File

@ -59,7 +59,7 @@ function getDownloadUrl(options) {
cacheKey: null,
};
}
const release = options?.version ?? "latest";
const release = encodeURIComponent(options?.version ?? "latest");
const os = options?.os ?? process.platform;
const arch = options?.arch ?? process.arch;
const avx2 = options?.avx2 ?? true;

View File

@ -79,7 +79,7 @@ function getDownloadUrl(options?: {
cacheKey: null,
};
}
const release = options?.version ?? "latest";
const release = encodeURIComponent(options?.version ?? "latest");
const os = options?.os ?? process.platform;
const arch = options?.arch ?? process.arch;
const avx2 = options?.avx2 ?? true;