diff --git a/cmd/containerbuild/main.go b/cmd/containerbuild/main.go index a351f347..3eb52ffd 100644 --- a/cmd/containerbuild/main.go +++ b/cmd/containerbuild/main.go @@ -159,5 +159,8 @@ func run(command string) (string, error) { } func setOutput(key, val string) { - fmt.Printf("::set-output name=%s::%s\n", key, val) + github_output := os.Getenv("GITHUB_OUTPUT") + f, _ := os.OpenFile(github_output, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644) + fmt.Fprintf(f, "%s=%s\n", key, val) + f.Close() }