We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df2f95 commit 9c89436Copy full SHA for 9c89436
.github/workflows/publish-maven.yml
@@ -82,6 +82,11 @@ jobs:
82
DEV_VERSION="${{ inputs.developmentVersion }}"
83
else
84
# Split version: supports both "0.1.32" and "0.1.32-java.0" formats
85
+ # Validate RELEASE_VERSION format explicitly to provide clear errors
86
+ if ! echo "$RELEASE_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+(-java\.[0-9]+)?$'; then
87
+ echo "Error: RELEASE_VERSION '$RELEASE_VERSION' is invalid. Expected format: M.M.P or M.M.P-java.N (e.g., 1.2.3 or 1.2.3-java.0)." >&2
88
+ exit 1
89
+ fi
90
# Extract the base M.M.P portion (before any qualifier)
91
BASE_VERSION=$(echo "$RELEASE_VERSION" | grep -oE '^[0-9]+\.[0-9]+\.[0-9]+')
92
QUALIFIER=$(echo "$RELEASE_VERSION" | sed "s|^${BASE_VERSION}||")
0 commit comments