switching from grep to awk

This commit is contained in:
Joseph Flinn 2020-12-16 21:48:02 +00:00
parent 047db49e25
commit e0cc09f656
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ steps:
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.*?(?=")')
GIT_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/joseph-flinn/desktop/releases/latest" | awk -F '"' '/tag_name/{print $4}')
echo "##vso[task.setvariable variable=git_release_version]$GIT_RELEASE_VERSION"
displayName: 'set git_release_version'