mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Prevent curl from assuming tar.gz format
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
5ffc60a1a3
commit
fbe5303dd3
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -17,9 +17,9 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
if (asset.name.endsWith(postfix)) {
|
||||
console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||
if (token) {
|
||||
execSync("curl -L -o /tmp/gotestfmt.tar.gz -H \"Authorization: Bearer " + token + "\" " + asset.browser_download_url)
|
||||
execSync("curl -L -o /tmp/gotestfmt" + postfix + " -H \"Authorization: Bearer " + token + "\" " + asset.browser_download_url)
|
||||
} else {
|
||||
execSync("curl -L -o /tmp/gotestfmt.tar.gz " + asset.browser_download_url)
|
||||
execSync("curl -L -o /tmp/gotestfmt" + postfix + " " + asset.browser_download_url)
|
||||
}
|
||||
console.log("Creating /usr/local/lib/gotestfmt directory...")
|
||||
execSync("sudo mkdir -p /usr/local/lib/gotestfmt")
|
||||
|
|
|
|||
Loading…
Reference in a new issue