From 78caa9c7bc669d909d9d0c5ee23f07d438bd31f5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:51:58 +0000 Subject: [PATCH 1/2] Initial plan From 6264fe9f0be5349ca349f3627bd45cd98f42a7dd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:55:14 +0000 Subject: [PATCH 2/2] Fix previous tag detection in GitHub Release workflow Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com> --- .github/workflows/publish-maven.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-maven.yml b/.github/workflows/publish-maven.yml index ea5ee4975..613cbfc1e 100644 --- a/.github/workflows/publish-maven.yml +++ b/.github/workflows/publish-maven.yml @@ -183,7 +183,12 @@ jobs: RELEASE_NOTES=$(envsubst < .github/workflows/notes.template) # Get the previous tag for generating notes - PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "") + # Fetch all tags and find the previous version tag (excluding 'latest' and the current tag) + CURRENT_TAG="v${VERSION}" + PREV_TAG=$(git tag -l 'v*' --sort=-version:refname | grep -v "^${CURRENT_TAG}$" | grep -v "^latest$" | head -n 1) + + echo "Current tag: ${CURRENT_TAG}" + echo "Previous tag: ${PREV_TAG}" # Build the gh release command GH_ARGS=("v${VERSION}")