From e53a6604951cc3afd80bf92a45fe88c5437b6c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Mon, 29 Jul 2024 21:07:28 +0200 Subject: [PATCH] fix: check if valid semver and add bun-v --- src/action.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/action.ts b/src/action.ts index 1f678f0..53b25a1 100644 --- a/src/action.ts +++ b/src/action.ts @@ -183,6 +183,8 @@ async function getDownloadUrl(options: Input): Promise { 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());