Skip to content

Commit dcbca87

Browse files
author
wilko
committed
add trigger tag for release pipeline
1 parent 214721b commit dcbca87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

azurePipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,13 @@ stages:
196196
- script: pip install -U mypy
197197
- script: mypy anonlink --ignore-missing-imports
198198
displayName: mypy
199+
- job:
200+
displayName: "check for and tag release"
201+
steps:
202+
# In this step, if this build is triggered by a tag, it will add a tag 'doRelease' to the current build.
203+
# This tag in turn is used as a trigger for the release pipeline.
204+
- script: echo "##vso[build.addbuildtag]doRelease"
205+
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
199206

200207
- stage: publish
201208
displayName: Publish packages to test feed

0 commit comments

Comments
 (0)