Skip to content

Avoid failing when PREV_TAG does not exist#1487

Closed
edburns wants to merge 1 commit into
mainfrom
edburns/fix-java-publish-maven-after-priming-tag-creation
Closed

Avoid failing when PREV_TAG does not exist#1487
edburns wants to merge 1 commit into
mainfrom
edburns/fix-java-publish-maven-after-priming-tag-creation

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented May 29, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 29, 2026 00:08
@edburns edburns requested a review from a team as a code owner May 29, 2026 00:08
@edburns edburns enabled auto-merge May 29, 2026 00:09
@edburns edburns disabled auto-merge May 29, 2026 00:09
@edburns edburns enabled auto-merge May 29, 2026 00:09
@edburns edburns disabled auto-merge May 29, 2026 00:09
@edburns edburns enabled auto-merge May 29, 2026 00:09
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

Fixes the Java Maven release workflow so the first release doesn't abort when there is no prior java/v* tag. With pipefail, the grep -Fxv returning exit 1 on no matches caused the pipeline to fail; appending || true normalizes the exit status, and the existing if [ -n "$PREV_TAG" ] guard handles the empty case.

Changes:

  • Append || true to the PREV_TAG pipeline to tolerate no matching previous tag.
  • Add a comment explaining the pipefail interaction with grep.
Show a summary per file
File Description
.github/workflows/java-publish-maven.yml Prevents the github-release job from failing on the first Java release when no prior java/v* tag exists.

Copilot's findings

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

@edburns edburns closed this May 29, 2026
auto-merge was automatically disabled May 29, 2026 01:11

Pull request was closed

@edburns edburns deleted the edburns/fix-java-publish-maven-after-priming-tag-creation branch May 29, 2026 17:19
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