Skip to content

Commit

Permalink
ci: Fix semver check in release workflow
Browse files Browse the repository at this point in the history
The semver check was inverted. This commit fixes it.
  • Loading branch information
olix0r committed Mar 14, 2024
1 parent 6faa3d3 commit 216c8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
if [[ "$ref" == refs/tags/release/* ]]; then
ver="${ref##refs/tags/release/}"
# Semver-ish
if echo "$ver" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?(\+[0-9A-Za-z-]+)?$' ; then
if ! echo "$ver" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?(\+[0-9A-Za-z-]+)?$' ; then
echo "Invalid version: $ver" >&2
exit 1
fi
Expand Down

0 comments on commit 216c8d3

Please sign in to comment.