mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 10:40:10 +08:00
chore: debug
This commit is contained in:
parent
c8d57cdc66
commit
2af2463ea8
@ -5,6 +5,7 @@ import { addPath, info } from '@actions/core';
|
||||
import getAsset from './getAsset.js';
|
||||
import getHomeDir from './getHomeDir.js';
|
||||
import { join } from 'path';
|
||||
import { readdirSync } from 'fs';
|
||||
|
||||
export default async(release: Release) => {
|
||||
const asset = getAsset(release.assets);
|
||||
@ -12,6 +13,8 @@ export default async(release: Release) => {
|
||||
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}`);
|
||||
if (cache) {
|
||||
info(`Using cached Bun installation from ${cache}.`);
|
||||
console.log(path);
|
||||
console.log(readdirSync(path));
|
||||
addPath(path);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user