mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Add debugger lines for executed commands
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
23017b3af3
commit
479a5ebf04
1 changed files with 4 additions and 1 deletions
5
index.js
5
index.js
|
|
@ -31,16 +31,19 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
|
||||
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||
if (token) {
|
||||
console.log(`curl -L -o ${archive} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`)
|
||||
execSync(`curl -L -o ${archive} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`)
|
||||
} else {
|
||||
console.log(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
||||
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
||||
}
|
||||
|
||||
console.log("Unpacking archive file...")
|
||||
console.log(`cd ${binpath} && ${extract} ${archive}`)
|
||||
execSync(`cd ${binpath} && ${extract} ${archive}`)
|
||||
|
||||
console.log("Removing asset archive...")
|
||||
fs.unlinkSync(`${archive}`)
|
||||
fs.unlinkSync(archive)
|
||||
|
||||
console.log("Successfully set up gotestfmt.")
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue