I have the below Azure YAML pipeline file whose stages get executed based on a tag some-tag-v* reference pushed to the Azure repo.
trigger:
branches:
include:
- refs/tags/some-tag-v*
exclude:
- refs/tags/some-branch
pool:
name: some-name
demands:
- Agent.Name -equals some-name
stages:
- stage: A
jobs:
- job: A
steps:
- checkout: self
- bash: |
some-bash-commands
- stage: B
jobs:
- job: B
steps:
- bash: |
More-bash-commands
Problem: I want stage B to be executed only when some-tag-2-v* is pushed instead of some-tag-v*. I am looking at the condition-based triggering but I am not sure if that's the right way to do it.