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