We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88247be commit f3a2d2dCopy full SHA for f3a2d2d
1 file changed
azure-pipelines.yml
@@ -1,12 +1,14 @@
1
trigger:
2
- '*'
3
-- refs/tags/v*
+- refs/tags/v*.*
4
5
variables:
6
- versionPrefix: 0.1
+ versionPrefix: 1.0
7
+ ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
8
+ tagVersion: ${{ replace(variables['Build.SourceBranchName'], 'v', '') }}
9
10
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops&tabs=yaml
-name: $(versionPrefix).$(Rev:r)0
11
+name: ${{ coalesce(variables.tagVersion, '$(versionPrefix).$(Rev:r)') }}
12
13
jobs:
14
- job: build
0 commit comments