From 2af2463ea8d23f4af3d2c50688ec9746e6996cc3 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Tue, 12 Jul 2022 09:11:41 +0200 Subject: [PATCH] chore: debug --- src/utils/install.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/install.ts b/src/utils/install.ts index 84426c2..59cd0db 100644 --- a/src/utils/install.ts +++ b/src/utils/install.ts @@ -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; }