Skip to content

Commit

Permalink
Fixed svg rule
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Oct 14, 2024
1 parent 8018dd4 commit 1690ce4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions checkVersion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Script to check the version format to avoid typos and mistakes.
# WIP: This script is not used in the workflow yet.

VERSION=$1

echo "Checking version format for version: $VERSION"

if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-SNAPSHOT)?$ ]]; then
echo "Invalid version format: $VERSION"
exit 1
fi

echo "Version format is valid: $VERSION"VERSION=${{ github.event.inputs.version }}

echo "Checking version format for version: $VERSION"

if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-SNAPSHOT)?$ ]]; then
echo "Invalid version format: $VERSION"
exit 1
fi

echo "Version format is valid: $VERSION"

0 comments on commit 1690ce4

Please sign in to comment.