fix: always run stage when group & groups empty

This commit is contained in:
张泊明518370910136 2025-09-24 21:27:05 -07:00
parent b419c1c643
commit 9f1a097cfa
GPG Key ID: D47306D7062CDA9D

View File

@ -48,7 +48,10 @@ func generateStages(confStages []conf.ConfStage, groups []string) (
s.Name = fmt.Sprintf("stage-%d", i)
}
ok := false
if s.Group != "" {
if s.Group == "" && len(s.Groups) == 0 {
ok = true
}
if !ok && s.Group != "" {
for _, group := range groups {
if strings.EqualFold(group, s.Group) {
ok = true