From ae2240dd72b9c019ded03569b8012caf04505ded Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 10:23:02 +1300 Subject: [PATCH] Remove GOOS detection as GOOS not in environment Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/index.js b/index.js index 5eaa4ec..1e19ce4 100644 --- a/index.js +++ b/index.js @@ -92,16 +92,6 @@ async function determineOS() { return os } -async function determineGOOS() { - const goos = process.env.GOOS; - - if (goos) { - console.log(`Running on GOOS '${goos}'`) - } - - return goos; -} - async function main() { try { // versionPrefix is the prefix of the version gotestfmt-action supports. @@ -113,7 +103,7 @@ async function main() { const octokit = new Octokit({ auth: token, }) - const os = (await determineGOOS() || await determineOS()) + const os = await determineOS() await downloadGofmt(octokit, version, versionPrefix, os, org, repo, token) console.log("Setup complete.") } catch (error) {