diff --git a/src/action.ts b/src/action.ts index 53b25a1..0d0e3dd 100644 --- a/src/action.ts +++ b/src/action.ts @@ -181,10 +181,10 @@ async function getDownloadUrl(options: Input): Promise { if (version === "latest") tag = `bun-v${tags.at(-1)}`; else tag = `bun-v${tags.filter((t) => satisfies(t, version)).at(-1)}`; + } else if (validate(tag)) { + tag = `bun-v${tag}`; } - if (validate(tag)) tag = `bun-v${tag}`; - const eversion = encodeURIComponent(tag ?? version); const eos = encodeURIComponent(os ?? getPlatform()); const earch = encodeURIComponent(arch ?? getArchitecture());