mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
fix: dont error when invalid asset for miscTestBuilds
This commit is contained in:
parent
4e76ddea17
commit
633e7abe1e
6 changed files with 26 additions and 10 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue