Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Path string
Raw []byte
DirName string
Name string `yaml:"name"`
Description string `yaml:"description"`
Inputs map[string]*ActionInput `yaml:"inputs"`
Outputs map[string]*ActionOutput `yaml:"outputs"`
Runs *ActionRuns `yaml:"runs"`
}
type ActionInput ¶
type ActionOutput ¶
type ActionRuns ¶
type ActionRuns struct {
Using string `yaml:"using"`
Steps []*ActionStep `yaml:"steps"`
}
func (*ActionRuns) IsStepExist ¶
func (ar *ActionRuns) IsStepExist(id string) bool
func (*ActionRuns) IsStepOutputExist ¶
func (ar *ActionRuns) IsStepOutputExist(step string, output string, d IDotGithub) int
func (*ActionRuns) SetParentType ¶
func (ar *ActionRuns) SetParentType(t string)
func (*ActionRuns) Validate ¶
func (ar *ActionRuns) Validate(dirName string, d IDotGithub) ([]string, error)
type ActionStep ¶
type ActionStep struct {
ParentType string
Name string `yaml:"name"`
Id string `yaml:"id"`
Uses string `yaml:"uses"`
Shell string `yaml:"bash"`
Env map[string]string `yaml:"env"`
Run string `yaml:"run"`
With map[string]string `yaml:"with"`
}
func (*ActionStep) Validate ¶
func (as *ActionStep) Validate(action string, workflowJob string, name string, d IDotGithub) ([]string, error)
type IDotGithub ¶
Click to show internal directories.
Click to hide internal directories.