You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish-maven.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,10 @@ jobs:
80
80
# Determine next development version
81
81
if [ -n "${{ inputs.developmentVersion }}" ]; then
82
82
DEV_VERSION="${{ inputs.developmentVersion }}"
83
+
if [[ "$DEV_VERSION" != *-SNAPSHOT ]]; then
84
+
echo "::error::developmentVersion '${DEV_VERSION}' must end with '-SNAPSHOT' (e.g., '${DEV_VERSION}-SNAPSHOT'). The maven-release-plugin requires the next development version to be a snapshot."
85
+
exit 1
86
+
fi
83
87
else
84
88
# Split version: supports both "0.1.32" and "0.1.32-java.0" formats
85
89
# Validate RELEASE_VERSION format explicitly to provide clear errors
0 commit comments