mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Rather than changing directories, specify target to tar command
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
f6d688bee8
commit
191181f3f2
1 changed files with 1 additions and 4 deletions
5
index.js
5
index.js
|
|
@ -39,10 +39,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
|
||||
// Extract the archive into the install target
|
||||
console.log("Unpacking archive file...")
|
||||
execSync(`cd "${binpath}" && ${extract} ${archive}`)
|
||||
fs.readdirSync('.').forEach(file => {
|
||||
console.log("Extracted " + file);
|
||||
});
|
||||
execSync(`${extract} ${archive} -C ${binpath}`)
|
||||
|
||||
// Remove the downloaded asset archive
|
||||
console.log("Removing asset archive...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue