QBitRun/lib/workflow/workflow.go

16 lines
272 B
Go
Raw Normal View History

package workflow
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"`
}