Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDotGithub ¶
type Workflow ¶
type Workflow struct {
Path string
Raw []byte
FileName string
Name string `yaml:"name"`
Description string `yaml:"description"`
Env map[string]string `yaml:"env"`
Jobs map[string]*WorkflowJob `yaml:"jobs"`
On *WorkflowOn `yaml:"on"`
}
type WorkflowCall ¶
type WorkflowCall struct {
Inputs map[string]*WorkflowInput `yaml:"inputs"`
}
type WorkflowDispatch ¶
type WorkflowDispatch struct {
Inputs map[string]*WorkflowInput `yaml:"inputs"`
}
type WorkflowInput ¶
type WorkflowJob ¶
type WorkflowJob struct {
Name string `yaml:"name"`
Uses string `yaml:"uses"`
RunsOn interface{} `yaml:"runs-on"`
Steps []*action.ActionStep `yaml:"steps"`
Env map[string]string `yaml:"env"`
Needs interface{} `yaml:"needs,omitempty"`
}
func (*WorkflowJob) IsStepExist ¶
func (wj *WorkflowJob) IsStepExist(id string) bool
func (*WorkflowJob) IsStepOutputExist ¶
func (wj *WorkflowJob) IsStepOutputExist(step string, output string, d IDotGithub) int
func (*WorkflowJob) SetParentType ¶
func (wj *WorkflowJob) SetParentType(t string)
func (*WorkflowJob) Validate ¶
func (wj *WorkflowJob) Validate(workflow string, job string, d IDotGithub) ([]string, error)
type WorkflowOn ¶
type WorkflowOn struct {
WorkflowCall *WorkflowCall `yaml:"workflow_call"`
WorkflowDispatch *WorkflowDispatch `yaml:"workflow_dispatch"`
}
Click to show internal directories.
Click to hide internal directories.