From b4f15a5d16717c6d599b4ff5afa8a1e930ba12d7 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Sun, 15 Feb 2026 07:19:43 -0600 Subject: [PATCH] Fix a CI warning: "The set-output command is deprecated" (#1443) --- cmd/containerbuild/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() }