validate version

This commit is contained in:
Kevin Papst
2023-08-17 22:54:35 +02:00
parent e77056c4b7
commit 4d182ad1a7

View File

@@ -28,7 +28,7 @@ jobs:
echo "kimai_version=$version" >> $GITHUB_ENV
if [[ ! $version =~ ^2\.(0|[1-9]*)\.(0|[1-9]*)$ ]]; then
if [[ ! $version =~ ^2\.(0|[1-9]*)(0?)\.(0|[0-9]*)(0?)$ ]]; then
echo "Invalid version number: $version"
exit 1
fi