From 9ead2f2bb819b15011e15151c6910133b5d4be6a Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Wed, 16 Dec 2020 19:50:31 +0000 Subject: [PATCH] switching back to manually setting the git_release_version with bash --- .az-pipelines/sign-windows-artifacts.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.az-pipelines/sign-windows-artifacts.yml b/.az-pipelines/sign-windows-artifacts.yml index 33f6ef7b62..64a4e40b14 100644 --- a/.az-pipelines/sign-windows-artifacts.yml +++ b/.az-pipelines/sign-windows-artifacts.yml @@ -3,9 +3,6 @@ trigger: none pool: vmImage: 'windows-latest' -variables: - gitReleaseVersion: $[ curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' ] - steps: - task: DotNetCoreCLI@2 inputs: @@ -19,6 +16,10 @@ steps: userRepository: joseph-flinn/desktop displayName: 'git release artifacts' +- bash: | + GIT_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")') + echo "##vso[task.setvariable variable=git_release_version]$GIT_RELEASE_VERSION" + - script: | ls -alh $(System.ArtifactsDirectory) echo GIT_RELEASE_VERSION=$GIT_RELEASE_VERSION