From 60a2fed37bef95441abed91453379d8d5b7726b0 Mon Sep 17 00:00:00 2001 From: benniekiss <63211101+benniekiss@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:33:47 -0400 Subject: [PATCH] fix GOOS parsing to match expected GHA RUNNER_OS values (#2422) 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 --- pkg/container/host_environment.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/container/host_environment.go b/pkg/container/host_environment.go index 55958ed4c9c..0103ebdb2f0 100644 --- a/pkg/container/host_environment.go +++ b/pkg/container/host_environment.go @@ -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 {