Skip to content

Commit 26c8715

Browse files
author
Matthew Bate
committed
Workload fix
1 parent 593ea55 commit 26c8715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
shell: pwsh
6363
run: |
6464
$version = "${{ steps.get_version.outputs.version }}"
65-
if ($version -notmatch '^\d+\.\d+\.\d+$') {
65+
$refType = "${{ github.ref_type }}"
66+
# Only enforce strict version format for tags
67+
if ($refType -eq "tag" -and $version -notmatch '^\d+\.\d+\.\d+$') {
6668
Write-Error "Invalid version format: $version (expected: X.Y.Z)"
6769
exit 1
6870
}

0 commit comments

Comments
 (0)