Skip to content

Commit

Permalink
fix GOOS parsing to match expected GHA RUNNER_OS values (#2422)
Browse files Browse the repository at this point in the history
github actions reports RUNNER_OS for linux and windows with capital letters (Linux, Windows). This should increase compatibility when runner uses `-self-hosted`

Co-authored-by: Jason Song <i@wolfogre.com>
  • Loading branch information
benniekiss and wolfogre authored Aug 13, 2024
1 parent 102e6cb commit 60a2fed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/container/host_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ func goArchToActionArch(arch string) string {

func goOsToActionOs(os string) string {
osMapper := map[string]string{
"linux": "Linux",
"windows": "Windows",
"darwin": "macOS",
}
if os, ok := osMapper[os]; ok {
Expand Down

0 comments on commit 60a2fed

Please sign in to comment.