mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 12:24:38 +02:00
add branches-ignore to workflow_run
This commit is contained in:
parent
c43cb79f95
commit
23de934a1e
@ -738,6 +738,14 @@ func matchWorkflowRunEvent(payload *api.WorkflowRunPayload, evt *jobparser.Event
|
|||||||
if !workflowpattern.Skip(patterns, []string{payload.WorkflowRun.HeadBranch}, &workflowpattern.EmptyTraceWriter{}) {
|
if !workflowpattern.Skip(patterns, []string{payload.WorkflowRun.HeadBranch}, &workflowpattern.EmptyTraceWriter{}) {
|
||||||
matchTimes++
|
matchTimes++
|
||||||
}
|
}
|
||||||
|
case "branches-ignore":
|
||||||
|
patterns, err := workflowpattern.CompilePatterns(vals...)
|
||||||
|
if err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if !workflowpattern.Filter(patterns, []string{payload.WorkflowRun.HeadBranch}, &workflowpattern.EmptyTraceWriter{}) {
|
||||||
|
matchTimes++
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
log.Warn("package event unsupported condition %q", cond)
|
log.Warn("package event unsupported condition %q", cond)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user