mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Prevent darwin from being reported as Linux
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
7dc6b91140
commit
c936969241
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -13,7 +13,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
for (let asset of releaseAssets.data) {
|
||||
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
||||
if (asset.name.endsWith(tarPostfix)) {
|
||||
console.log("Found Linux binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||
console.log("Found Unix 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)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue