fix: dont error when invalid asset for miscTestBuilds

This commit is contained in:
xHyroM 2022-07-12 19:53:24 +02:00
parent 4e76ddea17
commit 633e7abe1e
6 changed files with 26 additions and 10 deletions

4
dist/index.js vendored
View file

@ -1,7 +1,7 @@
import { getInput, info, setFailed, setOutput, warning } from '@actions/core';
import getGithubRelease from './utils/getGithubRelease.js';
import install from './utils/install.js';
const exit = (error, miscTestBuilds) => {
export const exit = (error, miscTestBuilds) => {
if (miscTestBuilds) {
warning(error);
}
@ -21,7 +21,7 @@ const main = async () => {
if ((release === null || release === void 0 ? void 0 : release.message) === 'Not Found')
return exit('Invalid bun version.', miscTestBuilds);
info(`Going to install release ${release.version}`);
await install(release);
await install(release, miscTestBuilds);
setOutput('bun-version', release.tag_name);
}
catch (e) {