QBitRun/lib/workflow/workflow.go

20 lines
339 B
Go
Raw Normal View History

package workflow
2024-06-27 16:47:11 +07:00
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"`
}