How can I restrict on-demand (i.e. not triggered) pipelines in Azure DevOps so that they only run on specific branches?
For instance, I have a pipeline (using the newer YAML syntax) that should only run on the master branch, as it is used to push code through to production, and can only be run by certain developers (we handle a lot of PII data, so our audit controls are fairly demanding). I have another pipeline that should run on any branch except master, as it is used to push code through to integration/testing environments, and can be run by anyone.
If I specified a trigger, I can tell it only to fire on certain branches; but if I set trigger: none in my YAML then I can't apply those restrictions. Any ideas?