ci(release): handle missing tag exit code in powershell step
All checks were successful
Desktop CI / tests (push) Successful in 14s
Desktop Release / release (push) Successful in 24s

This commit is contained in:
2026-02-15 17:30:22 +03:00
parent e8930f7550
commit 561cf43e09

View File

@@ -52,13 +52,16 @@ jobs:
run: |
$version = "${{ steps.extract_version.outputs.version }}"
git show-ref --tags --quiet --verify "refs/tags/$version"
if ($LASTEXITCODE -eq 0) {
$tagExists = ($LASTEXITCODE -eq 0)
$global:LASTEXITCODE = 0
if ($tagExists) {
Write-Host "Version $version already released, stopping job."
"CONTINUE=false" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
} else {
Write-Host "Version $version not released yet, continuing workflow..."
"CONTINUE=true" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
}
exit 0
- name: Run tests
if: env.CONTINUE == 'true'