From a8612daecbd6ad51be360828fe5e5ab49be35652 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 11 Nov 2025 15:27:37 +0000 Subject: [PATCH] Simplify previous tag detection for release notes Just use the latest tag directly instead of trying to exclude the current version. Since we're generating release notes BEFORE creating the tag, the latest tag will always be the previous release. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 417d31855..de770adf1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -164,8 +164,8 @@ jobs: run: | echo "Generating release notes using LLM..." - # Find previous release tag (latest tag excluding current if it exists) - PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -v "^v${{ inputs.version }}$" | head -1) + # Find previous release tag (simply get the latest tag) + PREVIOUS_TAG=$(git tag --sort=-version:refname | head -1) if [ -z "$PREVIOUS_TAG" ]; then echo "No previous tag found, comparing with first commit"