Skip to content

better-error-message-for-missing-snapshot-in-publish-maven-invocation#90

Merged
edburns merged 1 commit intomainfrom
edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation
Apr 21, 2026
Merged

better-error-message-for-missing-snapshot-in-publish-maven-invocation#90
edburns merged 1 commit intomainfrom
edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented Apr 21, 2026

modified: .github/workflows/publish-maven.yml
Better error message.

…h-maven-invocation

modified:   .github/workflows/publish-maven.yml
Copilot AI review requested due to automatic review settings April 21, 2026 17:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the release workflow’s validation by failing fast with a clearer GitHub Actions error when a manually supplied developmentVersion is not a -SNAPSHOT version, which is required by maven-release-plugin.

Changes:

  • Add an explicit check that inputs.developmentVersion ends with -SNAPSHOT.
  • Emit a GitHub Actions annotated error (::error::) and exit early when validation fails.
Show a summary per file
File Description
.github/workflows/publish-maven.yml Adds validation + improved error output for non-snapshot developmentVersion values in the version-determination step.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@edburns edburns merged commit 3dbb1f5 into main Apr 21, 2026
11 checks passed
@edburns edburns deleted the edburns/better-error-message-for-missing-snapshot-in-publish-maven-invocation branch April 21, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants