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.
This commit is contained in:
parent
70b321a450
commit
f444aec82f
1 changed files with 2 additions and 2 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue