fix: dont fail

This commit is contained in:
xHyroM 2022-07-12 19:56:32 +02:00
parent 633e7abe1e
commit 37657f4f9f
7 changed files with 16 additions and 17 deletions

View file

@ -4,8 +4,8 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js';
import { join } from 'path';
import { homedir } from 'os';
export default async (release, miscTestBuilds) => {
const asset = getAsset(release.assets, miscTestBuilds);
export default async (release) => {
const asset = getAsset(release.assets);
const path = join(homedir(), '.bun', 'bin', asset.name);
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`);
if (cache) {