From 3e9caae89ce75ebf589b4f1a572a23657e1ec60b Mon Sep 17 00:00:00 2001 From: Alexandre Teixeira Date: Mon, 6 Dec 2021 12:04:40 +0100 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1e97623..5fd4905 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,9 +22,10 @@ steps: script: | # Write your PowerShell commands here. - $CI_BUILD_TAG = git tag --sort=-creatordate - Write-Host $CI_BUILD_TAG[0] - Write-Host "##vso[task.setvariable variable=CI_BUILD_TAG]$CI_BUILD_TAG[0]" + $tags = git tag --sort=-creatordate + $CI_BUILD_TAG = $tags[0] + Write-Host $CI_BUILD_TAG + Write-Host "##vso[task.setvariable variable=CI_BUILD_TAG]$CI_BUILD_TAG" - task: DotNetCoreCLI@2 displayName: 'Unit Tests'