diff --git a/web/hook.go b/web/hook.go index f8a645c5d..e1af2d228 100644 --- a/web/hook.go +++ b/web/hook.go @@ -167,7 +167,7 @@ func PostHook(c *gin.Context) { // verify the branches can be built vs skipped branches := yaml.ParseBranch(raw) - if !branches.Matches(build.Branch) { + if !branches.Matches(build.Branch) && build.Event != model.EventTag && build.Event != model.EventDeploy { c.String(200, "Branch does not match restrictions defined in yaml") return }