Skip to content

Commit e848d7c

Browse files
committed
Fix checks
1 parent 141bb3a commit e848d7c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/actions/workflows.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,8 @@ func matchIssuesEvent(issuePayload *api.IssuePayload, evt *jobparser.Event) bool
398398
}
399399

400400
for _, val := range vals {
401-
for _, action := range actions {
402-
if glob.MustCompile(val, '/').Match(action) {
403-
matchTimes++
404-
break
405-
}
401+
if slices.ContainsFunc(actions, glob.MustCompile(val, '/').Match) {
402+
matchTimes++
406403
}
407404
// Once a match is found for this value, we can move to the next one
408405
if matchTimes > 0 {

0 commit comments

Comments
 (0)