Skip to content

Commit 5566beb

Browse files
committed
Fix release publish existence check
1 parent 2c1a278 commit 5566beb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ jobs:
108108
}
109109
110110
$releaseExists = $true
111-
gh release view $env:RELEASE_TAG *> $null
111+
gh release view $env:RELEASE_TAG 1>$null 2>$null
112112
if ($LASTEXITCODE -ne 0) {
113113
$releaseExists = $false
114114
}
115+
$global:LASTEXITCODE = 0
115116
116117
if ($releaseExists) {
117118
gh release upload $env:RELEASE_TAG @assets --clobber

0 commit comments

Comments
 (0)