Skip to content

Commit dcf8a6f

Browse files
author
Stuart Padley
committed
Remove 'v'
1 parent b982485 commit dcf8a6f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build/azure-pipelines/package-common-create.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ steps:
1919
targetType: 'inline'
2020
script: |
2121
$VERSION_TAG = git describe --tags (git rev-list --tags --max-count=1)
22+
$VERSION_TAG = $VERSION_TAG.substring(1) # Trim initial 'v'
2223
Write-Host("##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG")
2324
Write-Host($VERSION_TAG)
2425
- task: CmdLine@2

build/azure-pipelines/package-common-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ steps:
1616
targetType: 'inline'
1717
script: |
1818
$VERSION_TAG = git describe --tags (git rev-list --tags --max-count=1)
19+
$VERSION_TAG = $VERSION_TAG.substring(1) # Trim initial 'v'
1920
Write-Host("##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG")
2021
Write-Host($VERSION_TAG)
2122
- task: CmdLine@2

0 commit comments

Comments
 (0)