Skip to content

Commit 305ed4b

Browse files
committed
On branch edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation
modified: .github/workflows/publish-maven.yml
1 parent 3489870 commit 305ed4b

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)