Skip to content

Commit

Permalink
fix: check if valid semver and add bun-v
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jul 29, 2024
1 parent 019399b commit e53a660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e53a660

Please sign in to comment.