mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-20 06:31:45 +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
|
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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue