Documentation
¶
Overview ¶
Package actions contains utilities for working with github actions
Package actions contains utilities for working with github actions ¶
Package actions contains utilities for working with github actions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDebug ¶
func WriteDebug(message string)
WriteDebug is used to write debug message to the github actions log
func WriteError ¶
func WriteError(message Message)
WriteError is used to write error message to the github actions log
func WriteWarning ¶
func WriteWarning(message Message)
WriteWarning is used to write warning message to the github actions log
Types ¶
type GitHub ¶
type GitHub struct { Workflow string `env:"GITHUB_WORKFLOW"` RunID int16 `env:"GITHUB_RUN_ID"` JobID string `env:"GITHUB_JOB"` Action string `env:"GITHUB_ACTION"` Actor string `env:"GITHUB_ACTOR"` Repository string `env:"GITHUB_REPOSITORY"` Commit string `env:"GITHUB_SHA"` EventName string `env:"GITHUB_EVENT_NAME"` EventPath string `env:"GITHUB_EVENT_PATH"` Ref string `env:"GITHUB_REF"` RunningAsAction bool `env:"GITHUB_ACTIONS" envDefault:"false"` OperatingSystem string `env:"RUNNER_OS"` TemporaryDirectory string `env:"RUNNER_TEMP"` }
GitHub represents the inputs which github provides us on default
func LoadOptions ¶
LoadOptions parses the environment vars and reads github options Deprecated: Use GitHub.Load instead.
Click to show internal directories.
Click to hide internal directories.