mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-14 20:48:44 +00:00
Fix a CI warning: "The set-output command is deprecated" (#1443)
This commit is contained in:
@@ -159,5 +159,8 @@ func run(command string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setOutput(key, val string) {
|
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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user