diff --git a/.github/workflows/publish-new.yml b/.github/workflows/publish-new.yml index 5463a5ae8..e9bdc67d8 100644 --- a/.github/workflows/publish-new.yml +++ b/.github/workflows/publish-new.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check inputs run: | - if [ ${{ inputs.bump_type }} != 'override' ] && [ ${{ inputs.version_override }} != '' ]; then + if [[ "${{ inputs.bump_type }}" != "override" ]] && ! [[ -z "${{ inputs.version_override }}" ]]; then yarn tsx ./scripts/publish-new.ts --bump ${{ inputs.version_override }} else yarn tsx ./scripts/publish-new.ts --bump ${{ inputs.bump_type }} @@ -57,7 +57,7 @@ jobs: run: | git config --global user.name 'huppy-bot[bot]' git config --global user.email '128400622+huppy-bot[bot]@users.noreply.github.com' - if [ ${{ inputs.bump_type }} == 'override' ]; then + if [[ "${{ inputs.bump_type }}" == "override" ]]; then yarn tsx ./scripts/publish-new.ts --bump ${{ inputs.version_override }} else yarn tsx ./scripts/publish-new.ts --bump ${{ inputs.bump_type }}