mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Separate extension detection from postfix
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
beae072e4d
commit
74659dabed
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
|
@ -10,7 +10,8 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
release_id: release.id,
|
||||
})
|
||||
|
||||
postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`;
|
||||
extension = os === "windows" ? "zip" : "tar.gz";
|
||||
postfix = `_${os}_amd64.${extension}`;
|
||||
|
||||
for (let asset of releaseAssets.data) {
|
||||
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue