Skip to content

Commit

Permalink
use separate variable for greater version
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-jaksov-tl committed Oct 7, 2024
1 parent 40b4a3f commit 0b45a5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
run: |
[[ $OLD_VERSION != $NEW_VERSION ]]
- name: Sort versions
run: |
echo "GREATER_VERSION=$(echo $OLD_VERSION\\\n$NEW_VERSION | sort --version-sort | tail -n1)" >> $GITHUB_ENV
- name: Make sure new version is greater
run: |
[[ $(echo "$OLD_VERSION\n$NEW_VERSION" | sort --version-sort | tail -n1) == $NEW_VERSION ]]
[[ $GREATER_VERSION == $NEW_VERSION ]]

0 comments on commit 0b45a5b

Please sign in to comment.