From 9a15d587f4d2df4c2b97fa4584b7985deafa3f7b Mon Sep 17 00:00:00 2001 From: Logan Drescher Date: Sun, 22 Sep 2024 11:47:29 -0400 Subject: [PATCH] upgrading to special brackets --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e85fa43..124fdae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,17 +89,17 @@ jobs: oldBioSimVersion=${{ steps.latest_release_info.outputs.tag_name }} echo "oldBioSimVersion=$oldBioSimVersion" - if [ "$oldBioSimVersion" < "$bioSimVersion" ] && [ -z "$taggedVersion" ]; then + if [[ $oldBioSimVersion < $bioSimVersion ]] && [[ -z "$taggedVersion" ]]; 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 "$taggedVersion" ]; then + if [[ -z "$taggedVersion" ]]; then echo "This is not a tagged action; push a new tag to release." fi fi