Skip to content

Commit

Permalink
🩹 fix semver comparison in bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer committed Aug 9, 2024
1 parent 3918309 commit 6f0fcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-mqt-core-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
update=false
fi
else
if /usr/local/bin/semver compare ${{ steps.get-used-version.outputs.version }} ${{ steps.get-latest-release.outputs.latest_version }} < 0; then
if (( $(semver compare ${{ steps.get-used-version.outputs.version }} ${{ steps.get-latest-release.outputs.latest_version }}) < 0 )); then
update=true
elif [ ${{ steps.get-used-version.outputs.version }} = ${{ steps.get-latest-release.outputs.latest_version }} ] && [ ${{ steps.get-used-version.outputs.revision }} != ${{ steps.get-latest-tag-sha.outputs.latest_tag_sha }} ]; then
update=true
Expand Down

0 comments on commit 6f0fcd0

Please sign in to comment.