mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 18:50:10 +08:00
fix: check if valid semver and add bun-v
This commit is contained in:
parent
019399b06a
commit
e53a660495
@ -183,6 +183,8 @@ async function getDownloadUrl(options: Input): Promise<string> {
|
||||
else tag = `bun-v${tags.filter((t) => satisfies(t, version)).at(-1)}`;
|
||||
}
|
||||
|
||||
if (validate(tag)) tag = `bun-v${tag}`;
|
||||
|
||||
const eversion = encodeURIComponent(tag ?? version);
|
||||
const eos = encodeURIComponent(os ?? getPlatform());
|
||||
const earch = encodeURIComponent(arch ?? getArchitecture());
|
||||
|
Loading…
x
Reference in New Issue
Block a user