Fix tag matching (#191)

pull/192/head
Christopher Jolly 2 years ago committed by GitHub
parent f8b8872f74
commit 752cde4c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save