Documentation ¶
Overview ¶
Package gha is a convenience object to use Workflow commands for Github Actions. https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
Github is an object that output workflow commands.
func NewFromCli ¶
func NewFromCli(cCtx *cli.Context) Github
NewFromCli takes a cli.Context and looks for common.GHAFlag on it. If it is set, it returns a Github object that writes to the app's Writer. If it is not, it returns an empty Github object that does not write anything.
func (Github) SetOutput ¶
SetOutput outputs the `set-output` command. https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
Click to show internal directories.
Click to hide internal directories.