mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-18 05:31:47 +00:00
Attempt debugging missing download
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
05082d6398
commit
6e451eb607
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
|
@ -18,10 +18,11 @@ 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