mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-08 01:10:48 +01:00
..
This commit is contained in:
parent
5a0f4c9869
commit
6df185423d
@ -265,7 +265,7 @@ func skipWorkflows(input *notifyInput, commit *git.Commit) bool {
|
|||||||
}
|
}
|
||||||
if input.Event == webhook_module.HookEventWorkflowRun {
|
if input.Event == webhook_module.HookEventWorkflowRun {
|
||||||
wrun, ok := input.Payload.(*api.WorkflowRunPayload)
|
wrun, ok := input.Payload.(*api.WorkflowRunPayload)
|
||||||
if ok && wrun.WorkflowRun != nil && wrun.WorkflowRun.Event != "workflow_run" {
|
if ok && wrun.WorkflowRun != nil && wrun.WorkflowRun.Event == "workflow_run" {
|
||||||
// skip workflow runs triggered by another workflow run
|
// skip workflow runs triggered by another workflow run
|
||||||
// TODO GitHub allows chaining up to 5 of them
|
// TODO GitHub allows chaining up to 5 of them
|
||||||
log.Debug("repo %s: skipped workflow_run because of recursive event", input.Repo.RepoPath())
|
log.Debug("repo %s: skipped workflow_run because of recursive event", input.Repo.RepoPath())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user