We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 593ea55 commit 26c8715Copy full SHA for 26c8715
.github/workflows/dotnet-desktop.yml
@@ -62,7 +62,9 @@ jobs:
62
shell: pwsh
63
run: |
64
$version = "${{ steps.get_version.outputs.version }}"
65
- if ($version -notmatch '^\d+\.\d+\.\d+$') {
+ $refType = "${{ github.ref_type }}"
66
+ # Only enforce strict version format for tags
67
+ if ($refType -eq "tag" -and $version -notmatch '^\d+\.\d+\.\d+$') {
68
Write-Error "Invalid version format: $version (expected: X.Y.Z)"
69
exit 1
70
}
0 commit comments