mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
USe GOOs
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
d9e1a5f877
commit
6f8a8b87eb
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue