Skip to content

Commit 33fd845

Browse files
idoqoademidoff
andauthored
simply version checks
Co-authored-by: Alex Demidoff <[email protected]>
1 parent c0e9ce1 commit 33fd845

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/version-check.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ jobs:
6464
fi
6565
6666
# Compare versions: -1 if first < second, 0 if equal, 1 if first > second
67-
COMPARISON=$(semver -r ">=$GIT_VERSION_CLEAN" "$FILE_VERSION_CLEAN" && echo "valid" || echo "invalid")
68-
69-
if [ "$COMPARISON" = "invalid" ]; then
67+
if [ ! $(semver -r ">=$GIT_VERSION_CLEAN" "$FILE_VERSION_CLEAN") ]; then
7068
echo "VERSION file ($FILE_VERSION) is behind git tag ($GIT_VERSION)"
7169
echo "The VERSION file must be ahead of or equal to the latest git tag."
7270
exit 1

0 commit comments

Comments
 (0)