Versions in this module Expand all Collapse all v0 v0.246.3 Jul 2, 2023 Changes in this version + const ActionRunsUsingComposite + const ActionRunsUsingDocker + const ActionRunsUsingGo + const ActionRunsUsingNode12 + const ActionRunsUsingNode16 + const StepStatusFailure + const StepStatusSkipped + const StepStatusSuccess + var OnDecodeNodeError = func(node yaml.Node, out interface{}, err error) + type Action struct + Author string + Branding struct{ ... } + Description string + Inputs map[string]Input + Name string + Outputs map[string]Output + Runs ActionRuns + func ReadAction(in io.Reader) (*Action, error) + type ActionRuns struct + Args []string + Entrypoint string + Env map[string]string + Image string + Main string + Post string + PostIf string + Pre string + PreIf string + Steps []Step + Using ActionRunsUsing + type ActionRunsUsing string + func (a *ActionRunsUsing) UnmarshalYAML(unmarshal func(interface{}) error) error + type ContainerSpec struct + Args string + Cmd []string + Credentials map[string]string + Entrypoint string + Env map[string]string + Image string + Name string + Options string + Ports []string + Reuse bool + Volumes []string + type Defaults struct + Run RunDefaults + type GithubContext struct + APIURL string + Action string + ActionPath string + ActionRef string + ActionRepository string + Actor string + BaseRef string + Event map[string]interface{} + EventName string + EventPath string + GraphQLURL string + HeadRef string + Job string + JobName string + Ref string + RefName string + RefType string + Repository string + RepositoryOwner string + RetentionDays string + RunID string + RunNumber string + RunnerPerflog string + RunnerTrackingID string + ServerURL string + Sha string + Token string + Workflow string + Workspace string + func (ghc *GithubContext) SetBaseAndHeadRef() + func (ghc *GithubContext) SetRef(ctx context.Context, defaultBranch string, repoPath string) + func (ghc *GithubContext) SetRefTypeAndName() + func (ghc *GithubContext) SetRepositoryAndOwner(ctx context.Context, githubInstance string, remoteName string, repoPath string) + func (ghc *GithubContext) SetSha(ctx context.Context, repoPath string) + type Input struct + Default string + Description string + Required bool + type Job struct + Defaults Defaults + Env yaml.Node + If yaml.Node + Name string + Outputs map[string]string + RawContainer yaml.Node + RawNeeds yaml.Node + RawRunsOn yaml.Node + RawSecrets yaml.Node + Result string + Services map[string]*ContainerSpec + Steps []*Step + Strategy *Strategy + TimeoutMinutes string + Uses string + With map[string]interface{} + func (j *Job) Container() *ContainerSpec + func (j *Job) Environment() map[string]string + func (j *Job) GetMatrixes() ([]map[string]interface{}, error) + func (j *Job) InheritSecrets() bool + func (j *Job) Matrix() map[string][]interface{} + func (j *Job) Needs() []string + func (j *Job) RunsOn() []string + func (j *Job) Secrets() map[string]string + func (j *Job) Type() JobType + type JobContext struct + Container struct{ ... } + Services map[string]struct{ ... } + Status string + type JobType int + const JobTypeDefault + const JobTypeReusableWorkflowLocal + const JobTypeReusableWorkflowRemote + func (j JobType) String() string + type Output struct + Description string + Value string + type Plan struct + Stages []*Stage + func (p *Plan) MaxRunNameLen() int + type Run struct + JobID string + Workflow *Workflow + func (r *Run) Job() *Job + func (r *Run) String() string + type RunDefaults struct + Shell string + WorkingDirectory string + type Stage struct + Runs []*Run + func (s *Stage) GetJobIDs() []string + type Step struct + Env yaml.Node + ID string + If yaml.Node + Name string + Number int + RawContinueOnError string + Run string + Shell string + TimeoutMinutes string + Uses string + With map[string]string + WorkingDirectory string + func (s *Step) Environment() map[string]string + func (s *Step) GetEnv() map[string]string + func (s *Step) ShellCommand() string + func (s *Step) String() string + func (s *Step) Type() StepType + type StepResult struct + Conclusion stepStatus + Outcome stepStatus + Outputs map[string]string + type StepType int + const StepTypeInvalid + const StepTypeReusableWorkflowLocal + const StepTypeReusableWorkflowRemote + const StepTypeRun + const StepTypeUsesActionLocal + const StepTypeUsesActionRemote + const StepTypeUsesDockerURL + func (s StepType) String() string + type Strategy struct + FailFast bool + FailFastString string + MaxParallel int + MaxParallelString string + RawMatrix yaml.Node + func (s Strategy) GetFailFast() bool + func (s Strategy) GetMaxParallel() int + type Workflow struct + Defaults Defaults + Env map[string]string + File string + Jobs map[string]*Job + Name string + RawOn yaml.Node + func ReadWorkflow(in io.Reader) (*Workflow, error) + func (w *Workflow) GetJob(jobID string) *Job + func (w *Workflow) GetJobIDs() []string + func (w *Workflow) On() []string + func (w *Workflow) OnEvent(event string) interface{} + func (w *Workflow) OnSchedule() []string + func (w *Workflow) WorkflowCallConfig() *WorkflowCall + func (w *Workflow) WorkflowDispatchConfig() *WorkflowDispatch + type WorkflowCall struct + Inputs map[string]WorkflowCallInput + Outputs map[string]WorkflowCallOutput + type WorkflowCallInput struct + Default string + Description string + Required bool + Type string + type WorkflowCallOutput struct + Description string + Value string + type WorkflowCallResult struct + Outputs map[string]string + type WorkflowDispatch struct + Inputs map[string]WorkflowDispatchInput + type WorkflowDispatchInput struct + Default string + Description string + Options []string + Required bool + Type string + type WorkflowFiles struct + type WorkflowPlanner interface + GetEvents func() []string + PlanAll func() (*Plan, error) + PlanEvent func(eventName string) (*Plan, error) + PlanJob func(jobName string) (*Plan, error) + func CombineWorkflowPlanner(workflows ...*Workflow) WorkflowPlanner + func NewWorkflowPlanner(path string, noWorkflowRecurse bool) (WorkflowPlanner, error)