gha

package
v0.0.0-...-3a64406 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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 New

func New(writer io.Writer) Github

New creates a Github object that will print commands to the specified writer.

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

func (g Github) SetOutput(name string, value interface{})

SetOutput outputs the `set-output` command. https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

Jump to

Keyboard shortcuts

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