mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
dbg
This commit is contained in:
parent
c8617ac6ae
commit
42746a4f3c
2 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@ import * as tc from '@actions/tool-cache';
|
|||
import * as path from 'path';
|
||||
import * as semver from 'semver';
|
||||
import {Url} from 'url';
|
||||
import fs = require('fs');
|
||||
|
||||
//
|
||||
// Node versions interface
|
||||
|
@ -76,6 +77,9 @@ export async function getNode(
|
|||
if (osPlat == 'win32') {
|
||||
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
|
||||
|
||||
console.log(`downloadPath: ${downloadPath}`);
|
||||
console.log(JSON.stringify(fs.statSync(downloadPath)));
|
||||
|
||||
extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
|
||||
// 7z extracts to folder matching file name
|
||||
extPath = path.join(extPath, path.basename(downloadPath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue