Skip to content

Commit 9c76b33

Browse files
authored
add default workflow (#328)
1 parent fe694c1 commit 9c76b33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/configuration/digger_config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ func ConvertDiggerYamlToConfig(diggerYaml *DiggerConfigYaml, workingDir string,
234234
// if workflow block is not specified in yaml we create a default one, and add it to every project
235235
if diggerYaml.Workflows != nil {
236236
diggerConfig.Workflows = diggerYaml.Workflows
237+
// provide default workflow if not specified
238+
if _, ok := diggerConfig.Workflows[defaultWorkflowName]; !ok {
239+
workflow := *defaultWorkflow()
240+
diggerConfig.Workflows[defaultWorkflowName] = workflow
241+
}
237242
} else {
238243
workflow := *defaultWorkflow()
239244
diggerConfig.Workflows = make(map[string]Workflow)

0 commit comments

Comments
 (0)