Tags field type change for workflow

dev
Ice3man543 2021-07-05 21:02:38 +05:30
parent 1037dace47
commit c90d2eb4c8
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func parseWorkflowTemplate(workflow *workflows.WorkflowTemplate, options *protoc
var paths []string var paths []string
if len(workflow.Tags) > 0 { if len(workflow.Tags) > 0 {
paths = loader.ListTags(workflow.Tags) paths = loader.ListTags([]string{workflow.Tags})
} else { } else {
paths = loader.ListTemplates([]string{workflow.Template}, noValidate) paths = loader.ListTemplates([]string{workflow.Template}, noValidate)
} }

View File

@ -15,7 +15,7 @@ type WorkflowTemplate struct {
// Template is the template to run // Template is the template to run
Template string `yaml:"template"` Template string `yaml:"template"`
// Tags to perform filtering of supplied templates on // Tags to perform filtering of supplied templates on
Tags []string `yaml:"tags"` Tags string `yaml:"tags"`
// Matchers perform name based matching to run subtemplates for a workflow. // Matchers perform name based matching to run subtemplates for a workflow.
Matchers []*Matcher `yaml:"matchers"` Matchers []*Matcher `yaml:"matchers"`
// Subtemplates are ran if the template matches. // Subtemplates are ran if the template matches.