Context
Azure Pipelines supports different kinds of CI triggers (docs).
Example A:
trigger:
branches:
include:
- master
The pipeline will run if new commits are detected in the master branch.
Example B:
trigger:
branches:
include:
- refs/tags/v*
The pipeline will run if new tags beginning with v
are detected.
I want my pipeline to run when both of the above conditions are true: branch and tag.
Example C (not working as desired):
trigger:
branches:
include:
- master
- refs/tags/v*
Combining the two triggers seems to act like an or-condition, not an and-condition.
Question
How can I trigger a pipeline on the master
branch only when there are new v*
tags?