diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a465233..5919f9f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,7 @@ jobs: id: check_beta shell: powershell run: | - if (${{ env.VERSION }}.Contains("beta") -or ${{ env.VERSION }}.Contains("alpha")) { + if ($env:VERSION -like "*beta*" -or $env:VERSION -like "*alpha*") { echo "IS_BETA=true" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 } else { echo "IS_BETA=false" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8