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

View file

@ -99,6 +99,10 @@ async function determineOS() {
return os
}
async function determineGOOS() {
return process.env.GOOS;
}
async function main() {
try {
// versionPrefix is the prefix of the version gotestfmt-action supports.
@ -110,7 +114,7 @@ async function main() {
const octokit = new Octokit({
auth: token,
})
const os = await determineOS()
const os = (await determineGOOS() || await determineOS())
await downloadGofmt(octokit, version, versionPrefix, os, org, repo, token)
console.log("Setup complete.")
} catch (error) {