Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkflowContent ¶
type WorkflowContent struct {
Name string `yaml:"name"`
On struct {
WorkflowDispatch struct {
Inputs map[string]WorkflowInput `yaml:"inputs"`
} `yaml:"workflow_dispatch"`
} `yaml:"on"`
}
func UnmarshalWorkflowContent ¶
func UnmarshalWorkflowContent(data []byte) (*WorkflowContent, error)
type WorkflowInput ¶
type WorkflowInput struct {
Description string `yaml:"description"`
Required bool `yaml:"required"`
Default interface{} `yaml:"default,omitempty"`
Type string `yaml:"type,omitempty"`
Options []string `yaml:"options,omitempty"`
JSONContent map[string]string `yaml:"-"` // This field is for internal use and won't be filled directly by the YAML unmarshaler
}
func (*WorkflowInput) UnmarshalYAML ¶
func (i *WorkflowInput) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.