ghaoutput

package
v0.9.2-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer handles writing outputs to GitHub Actions $GITHUB_OUTPUT file

func New

func New() *Writer

New creates a new Writer instance

func (*Writer) Flush

func (w *Writer) Flush() error

Flush writes all outputs to $GITHUB_OUTPUT or stdout

func (*Writer) Set

func (w *Writer) Set(key, value string)

Set sets a simple key-value output

func (*Writer) SetBool

func (w *Writer) SetBool(key string, value bool)

SetBool sets a boolean output as a string

func (*Writer) SetJSON

func (w *Writer) SetJSON(key string, value interface{}) error

SetJSON marshals a value to JSON and sets it as output

func (*Writer) SetMultiline

func (w *Writer) SetMultiline(key, value string)

SetMultiline sets a multiline output value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL