// ActionRunsUsing is the type of runner for the action
typeActionRunsUsingstring
const(
// ActionRunsUsingNode12 for running with node12
ActionRunsUsingNode12="node12"
// ActionRunsUsingDocker for running with docker
ActionRunsUsingDocker="docker"
)
// Action describes a metadata file for GitHub actions. The metadata filename must be either action.yml or action.yaml. The data in the metadata file defines the inputs, outputs and main entrypoint for your action.
typeActionstruct{
Namestring`yaml:"name"`
Authorstring`yaml:"author"`
Descriptionstring`yaml:"description"`
Inputsmap[string]Input`yaml:"inputs"`
Outputsmap[string]Output`yaml:"outputs"`
Runsstruct{
UsingActionRunsUsing`yaml:"using"`
Envmap[string]string`yaml:"env"`
Mainstring`yaml:"main"`
Imagestring`yaml:"image"`
Entrypoint[]string`yaml:"entrypoint"`
Args[]string`yaml:"args"`
}`yaml:"runs"`
Brandingstruct{
Colorstring`yaml:"color"`
Iconstring`yaml:"icon"`
}`yaml:"branding"`
}
// Input parameters allow you to specify data that the action expects to use during runtime. GitHub stores input parameters as environment variables. Input ids with uppercase letters are converted to lowercase during runtime. We recommended using lowercase input ids.
typeInputstruct{
Descriptionstring`yaml:"description"`
Requiredbool`yaml:"required"`
Defaultstring`yaml:"default"`
}
// Output parameters allow you to declare data that an action sets. Actions that run later in a workflow can use the output data set in previously run actions. For example, if you had an action that performed the addition of two inputs (x + y = z), the action could output the sum (z) for other actions to use as an input.