Update push.yml (#186)

Use a better way to get the tag to see if it should be an official build
pull/187/head
Christopher Jolly 2 years ago committed by GitHub
parent 73875b9832
commit 33c0158ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -351,7 +351,8 @@ jobs:
- name: NuGet Pack
shell: pwsh
run: |
$officialBuild = '${{ github.ref }}' -match '(?<=^refs/tags/v)\d+\.\d+\.\d+.*$'
$tagName = git tag --points-at HEAD
$officialBuild = $tagName -match '(?<=^v)\d+\.\d+\.\d+.*$'
$officialVersion = $Matches.0
$wipBuild = '${{ github.ref }}' -match '^refs/heads/.*-wip$'
$ciBuildOnly = $wipBuild -or ('${{ github.ref }}' -match '^refs/heads/(?:master|.*-servicing)$')

Loading…
Cancel
Save