mirror of
https://code.forgejo.org/actions/setup-node
synced 2025-06-19 01:50:26 +02:00
strip 1 on fallback extract
This commit is contained in:
parent
ed3a918d25
commit
2bdb2ab1c9
5 changed files with 52 additions and 18 deletions
|
@ -77,7 +77,11 @@ export async function getNode(
|
|||
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
|
||||
extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
|
||||
} else {
|
||||
extPath = await tc.extractTar(downloadPath);
|
||||
extPath = await tc.extractTar(downloadPath, undefined, [
|
||||
'xz',
|
||||
'--strip',
|
||||
'1'
|
||||
]);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue