mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-20 22:51:45 +00:00
Restore original console loggers
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
6e451eb607
commit
d9e1a5f877
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
|
@ -18,11 +18,10 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
||||||
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
||||||
if (asset.name.endsWith(postfix)) {
|
if (asset.name.endsWith(postfix)) {
|
||||||
|
|
||||||
|
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||||
if (token) {
|
if (token) {
|
||||||
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download with bearer token...")
|
|
||||||
execSync(`curl -L -o ${tempdir}/gotestfmt${postfix} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`)
|
execSync(`curl -L -o ${tempdir}/gotestfmt${postfix} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`)
|
||||||
} else {
|
} else {
|
||||||
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
|
||||||
execSync(`curl -L -o ${tempdir}/gotestfmt${postfix} ${asset.browser_download_url}`)
|
execSync(`curl -L -o ${tempdir}/gotestfmt${postfix} ${asset.browser_download_url}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue