mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-20 06:31:45 +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...")
|
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||||
if (token) {
|
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}`)
|
execSync(`curl -L -o ${archive} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`)
|
||||||
} else {
|
} else {
|
||||||
|
console.log(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
||||||
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Unpacking archive file...")
|
console.log("Unpacking archive file...")
|
||||||
|
console.log(`cd ${binpath} && ${extract} ${archive}`)
|
||||||
execSync(`cd ${binpath} && ${extract} ${archive}`)
|
execSync(`cd ${binpath} && ${extract} ${archive}`)
|
||||||
|
|
||||||
console.log("Removing asset archive...")
|
console.log("Removing asset archive...")
|
||||||
fs.unlinkSync(`${archive}`)
|
fs.unlinkSync(archive)
|
||||||
|
|
||||||
console.log("Successfully set up gotestfmt.")
|
console.log("Successfully set up gotestfmt.")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue