diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45b840c..6491987 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,14 +116,14 @@ jobs: oldBioSimVersion=${{ steps.latest_release_info.outputs.tag_name }} echo "oldBioSimVersion=$oldBioSimVersion" - if [ $oldBioSimVersion < $bioSimVersion ] && [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then + if [ "$oldBioSimVersion" < "$bioSimVersion" ] && [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then echo "needDeploy=true" >> "$GITHUB_OUTPUT" echo "Deploy will be performed!" else echo "needDeploy=false" >> "$GITHUB_OUTPUT" echo "Deploy will NOT be performed:" # Get an idea of why we will not deploy - if [ $oldBioSimVersion < $bioSimVersion ]; then + if [ "$oldBioSimVersion" < "$bioSimVersion" ]; then echo "Version is not newer than existing version" fi if [ -z ${{ steps.get-tagged-version.outputs.version }} ]; then