From 305ed4bab719483c1fd3c7aadee6380079662465 Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 21 Apr 2026 13:42:33 -0400 Subject: [PATCH] On branch edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation modified: .github/workflows/publish-maven.yml --- .github/workflows/publish-maven.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-maven.yml b/.github/workflows/publish-maven.yml index 540da6ae7..e8e10b24c 100644 --- a/.github/workflows/publish-maven.yml +++ b/.github/workflows/publish-maven.yml @@ -80,6 +80,10 @@ jobs: # Determine next development version if [ -n "${{ inputs.developmentVersion }}" ]; then DEV_VERSION="${{ inputs.developmentVersion }}" + if [[ "$DEV_VERSION" != *-SNAPSHOT ]]; then + 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." + exit 1 + fi else # Split version: supports both "0.1.32" and "0.1.32-java.0" formats # Validate RELEASE_VERSION format explicitly to provide clear errors