Currently pipelines doesn't run deployment steps if they are restricted on certain branches when a tag is pushed if a branch restriction is applied on deployments.
Steps to reproduce:
- Configured pipelines to trigger on a tag and execute steps as below.
- Restricted deployments on staging to be run only from "master" branch using this feature in pipelines under repository settings.
- Pushed a tag to the repository
Pipelines was triggered on the above repository but it was failed with below message
It was paused because only pushes to master branch are allowed to deploy on staging environment.
Ability to enter tags and tag prefixes along with branches in the below screenshot should help running deployments using tags.