Generic Webhook Trigger restriction on master branch

Name of variable

  1. Assign a name to the ref variable

Expression

  1. Specify a regular expression to capture
    now your variable ref = refs/heads/main

Expression (at the end)

  1. Specify a regular expression for the branches for which you want to run jobs.

Text

  1. Compare the regular expression (allowed branches) with what is in your ref variable

Top right is a quote from the documentation. It provides an example for the develop branch and multiple feature branches.