Remove GOOS detection as GOOS not in environment

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 10:23:02 +13:00 committed by GitHub
parent 5f6ce583a3
commit ae2240dd72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {