forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
at master 466 B view raw
1package models 2 3type Pipeline struct { 4 RepoOwner string 5 RepoName string 6 Workflows map[Engine][]Workflow 7} 8 9type Step interface { 10 Name() string 11 Command() string 12 Kind() StepKind 13} 14 15type StepKind int 16 17const ( 18 // steps injected by the CI runner 19 StepKindSystem StepKind = iota 20 // steps defined by the user in the original pipeline 21 StepKindUser 22) 23 24type Workflow struct { 25 Steps []Step 26 Name string 27 Data any 28 Environment map[string]string 29}