Skip to content

Commit 3dbb1f5

Browse files
authored
Merge pull request #90 from github/edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation
better-error-message-for-missing-snapshot-in-publish-maven-invocation
2 parents 75bd4a9 + 305ed4b commit 3dbb1f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/publish-maven.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ jobs:
8080
# Determine next development version
8181
if [ -n "${{ inputs.developmentVersion }}" ]; then
8282
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
8387
else
8488
# Split version: supports both "0.1.32" and "0.1.32-java.0" formats
8589
# Validate RELEASE_VERSION format explicitly to provide clear errors

0 commit comments

Comments
 (0)