mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-20 06:31:45 +00:00
Inline postfix declaration
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
44e82aa5b0
commit
beae072e4d
1 changed files with 1 additions and 5 deletions
6
index.js
6
index.js
|
|
@ -10,11 +10,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
||||||
release_id: release.id,
|
release_id: release.id,
|
||||||
})
|
})
|
||||||
|
|
||||||
postfix = `_${os}_amd64.tar.gz`
|
postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`;
|
||||||
|
|
||||||
if (os === "windows") {
|
|
||||||
postfix = `_${os}_amd64.zip`
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let asset of releaseAssets.data) {
|
for (let asset of releaseAssets.data) {
|
||||||
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue