Skip to content

Commit

Permalink
fix: change set-output name from deno-version to bun-version
Browse files Browse the repository at this point in the history
change set-output name from `deno-version` to `bun-version`
  • Loading branch information
xhyrom authored Jul 12, 2022
2 parents 01e07c2 + cb10b94 commit dd174af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const main = async () => {
return exit('Invalid bun version.');
info(`Going to install release ${release.tag_name}`);
await install(release);
setOutput('deno-version', release.tag_name);
setOutput('bun-version', release.tag_name);
}
catch (e) {
exit(e);
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ const main = async() => {
try {
const version = getInput('bun-version');
const token = getInput('github-token');

if (!version) return exit('Invalid bun version.');

const release = await getGithubRelease(version, token);
if (release?.message === 'Not Found') return exit('Invalid bun version.');

info(`Going to install release ${release.tag_name}`);

await install(release);
setOutput('deno-version', release.tag_name);

setOutput('bun-version', release.tag_name);
} catch(e) {
exit(e);
}
}

main();
main();

0 comments on commit dd174af

Please sign in to comment.