diff --git a/.github/actions/version-check/action.yml b/.github/actions/version-check/action.yml index 0233414..e5a0640 100644 --- a/.github/actions/version-check/action.yml +++ b/.github/actions/version-check/action.yml @@ -25,7 +25,7 @@ runs: shell: bash run: | VER=$(curl --silent -L -H "Authorization: Bearer ${{ inputs.github_token }}" -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .name | sed s/^v//) - if [ "$VER" -eq "null" ]; then + if [ "$VER" == "null" ]; then echo "No releases found" echo LATEST_RELEASE="0.0.0" >> "$GITHUB_ENV" exit 0