mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-20 06:31:45 +00:00
Ensure bin path exists
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
9504821a22
commit
41182fa2c4
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
|
@ -37,6 +37,10 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
||||||
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure the that the install target exists
|
||||||
|
console.log("Preparing install target...")
|
||||||
|
fs.mkdirSync(binpath)
|
||||||
|
|
||||||
// Extract the archive into the install target
|
// Extract the archive into the install target
|
||||||
console.log("Unpacking archive file...")
|
console.log("Unpacking archive file...")
|
||||||
execSync(`cd "${binpath}" && ${extract} ${archive}`)
|
execSync(`cd "${binpath}" && ${extract} ${archive}`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue