fix bash thing

This commit is contained in:
David Sheldrick 2024-02-29 13:32:28 +00:00
parent 5db4e9a491
commit 08c96b0df7

View file

@ -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 }}