Skip to content

Commit 8d19704

Browse files
Refine tag selection logic to ensure proper trimming of release tags
1 parent 8d079fa commit 8d19704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-tagged-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
exit 0
3737
}
3838
39-
$selected = ($tags | Sort-Object)[0]
39+
$selected = ($tags | Sort-Object | Select-Object -First 1).Trim()
4040
Write-Host "Found release tag '$selected'. Preparing publish."
4141
"HAS_RELEASE_TAG=true" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
4242
"RELEASE_TAG=$selected" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append

0 commit comments

Comments
 (0)