Exclude workflows on feature branch pushes

I want to exclude a CI build for when a user pushes to a feature branch, but include on Pull Requests. What would be the most effective way to write it?

  • push_branch: "feature/"
    workflow: ignore
  • pull_request_source_branch: "feature/*"
    workflow: pull_request_feature
  • pull_request_source_branch: "release/*"
    workflow: pull_request_master

For this I create a workflow called ignore but is there a way to just ignore it completely?

1 Like

Simply remove the push_branch trigger, that means that you don’t want to run any build on regular pushes.

If you’d have any questions just let us know! :wink: