20 lines
339 B
Go
20 lines
339 B
Go
package workflow
|
|
|
|
type WorkflowInput interface {
|
|
Workflows() ([]Workflow, error)
|
|
}
|
|
|
|
type Workflow struct {
|
|
Name string `yaml:"name"`
|
|
Disabled bool `yaml:"disabled"`
|
|
When string `yaml:"when"`
|
|
Jobs Jobs `yaml:"jobs"`
|
|
}
|
|
|
|
type Jobs map[string]Job
|
|
|
|
type Step struct {
|
|
Name string `yaml:"name"`
|
|
Run string `yaml:"run"`
|
|
}
|