chore: debug

This commit is contained in:
xHyroM 2022-07-12 09:31:35 +02:00
parent 5ae94929ee
commit e24995197a
3 changed files with 4 additions and 0 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -4,6 +4,7 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js';
import getHomeDir from './getHomeDir.js';
import { join } from 'path';
import { homedir } from 'os';
export default async (release) => {
const asset = getAsset(release.assets);
const path = join(getHomeDir(), '.bun', 'bin', asset.name);
@ -13,6 +14,7 @@ export default async (release) => {
addPath(path);
return;
}
console.log(getHomeDir(), homedir());
info(`Downloading Bun from ${asset.asset.browser_download_url}.`);
const zipPath = await downloadTool(asset.asset.browser_download_url);
const extracted = await extractZip(zipPath, join(getHomeDir(), '.bun', 'bin'));

View File

@ -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 { homedir } from 'os';
export default async(release: Release) => {
const asset = getAsset(release.assets);
@ -15,6 +16,7 @@ export default async(release: Release) => {
addPath(path);
return;
}
console.log(getHomeDir(), homedir());
info(`Downloading Bun from ${asset.asset.browser_download_url}.`);