| ms.topic | include |
|---|---|
| ms.service | azure-devops-pipelines |
| ms.manager | mijacobs |
| ms.date | 07/07/2022 |
::: moniker range="<=azure-devops"
In addition to specifying tags in the branches lists as covered in the previous section, you can directly specify tags to include or exclude:
# specific tag
trigger:
tags:
include:
- v2.*
exclude:
- v2.0If you don't specify any tag triggers, then by default, tags will not trigger pipelines.
Important
If you specify tags in combination with branch filters, the trigger will fire if either the branch filter is satisfied or the tag filter is satisfied. For example, if a pushed tag satisfies the branch filter, the pipeline triggers even if the tag is excluded by the tag filter, because the push satisfied the branch filter.
::: moniker-end