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