Skip to content

Commit

Permalink
Fixed bad boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Sep 22, 2024
1 parent 9a15d58 commit 0ac6528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ jobs:
oldBioSimVersion=${{ steps.latest_release_info.outputs.tag_name }}
echo "oldBioSimVersion=$oldBioSimVersion"
if [[ $oldBioSimVersion < $bioSimVersion ]] && [[ -z "$taggedVersion" ]]; then
if [[ $oldBioSimVersion -lt $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 -ge $bioSimVersion ]]; then
echo "Version is not newer than existing version"
fi
if [[ -z "$taggedVersion" ]]; then
Expand Down

0 comments on commit 0ac6528

Please sign in to comment.