diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 9490b4b1..f0ba55bc 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -29,7 +29,7 @@ jobs: id: create_tag run: | $tagExists = git tag -l $env:VERSION - if ([string]::IsNullOrEmpty($tagExists)) { + if ($null -eq $tagExists) { git tag $env:VERSION git push origin $env:VERSION } else {