go get github.com/ci-space/github-output@v0.1.0
github-output - is simple GO library for writing values into $GITHUB_OUTPUT
package main
import githuboutput "github.com/ci-space/github-output"
func main() {
githuboutput.Write("name", "Ivan")
}
package main
import githuboutput "github.com/ci-space/github-output"
func main() {
githuboutput.WriteMap(map[string]string{
"name": "Ivan",
"last_name": "Ivanov",
})
}
package main
import githuboutput "github.com/ci-space/github-output"
func main() {
githuboutput.WhenAvailable(func() error {
return githuboutput.Write("key", "value")
})
}