From 97091d0d670d84954b636c22fd4e925b93e7c390 Mon Sep 17 00:00:00 2001 From: Nick Cross Date: Tue, 24 Nov 2026 10:51:38 +0000 Subject: [PATCH] Match tags to branch ref --- .github/workflows/maven-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 03220ac..b622af7 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -146,7 +146,7 @@ jobs: - name: Create the GH Release run: | # Fetch latest two tags sorted by creation date - TAGS=$(git tag --sort=-creatordate | head -n 2) + TAGS=$(git tag --sort=-creatordate --merged "$FINAL_REF" | head -n 2) LATEST_TAG=$(echo "$TAGS" | sed -n '1p') PREVIOUS_TAG=$(echo "$TAGS" | sed -n '2p') echo "Creating release notes between ${LATEST_TAG} and ${PREVIOUS_TAG}"