We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e9ce1 commit 33fd845Copy full SHA for 33fd845
.github/workflows/version-check.yml
@@ -64,9 +64,7 @@ jobs:
64
fi
65
66
# 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
+ if [ ! $(semver -r ">=$GIT_VERSION_CLEAN" "$FILE_VERSION_CLEAN") ]; then
70
echo "VERSION file ($FILE_VERSION) is behind git tag ($GIT_VERSION)"
71
echo "The VERSION file must be ahead of or equal to the latest git tag."
72
exit 1
0 commit comments