diff --git a/src/action.ts b/src/action.ts index 5b3fc3b..1f678f0 100644 --- a/src/action.ts +++ b/src/action.ts @@ -171,7 +171,7 @@ async function getDownloadUrl(options: Input): Promise { (tag) => tag.ref.startsWith("refs/tags/bun-v") || tag.ref === "refs/tags/canary" ) - .map((item) => item.ref.replace(/refs\/tags\/(bun-)?/g, "")); + .map((item) => item.ref.replace(/refs\/tags\/(bun-v)?/g, "")); const { version, os, arch, avx2, profile } = options; @@ -180,7 +180,7 @@ async function getDownloadUrl(options: Input): Promise { tags = tags.filter((t) => validate(t)).sort(compareVersions); if (version === "latest") tag = `bun-v${tags.at(-1)}`; - else tag = `bun-${tags.filter((t) => satisfies(t, version)).at(-1)}`; + else tag = `bun-v${tags.filter((t) => satisfies(t, version)).at(-1)}`; } const eversion = encodeURIComponent(tag ?? version);