Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,21 @@ jobs:
VERSION="${{ steps.package_version.outputs.version }}"
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")

# Generate release notes file
echo "## What's Changed" > release_notes.txt
echo "" >> release_notes.txt

if [ -z "$PREV_TAG" ]; then
echo "No previous tag found, using all commits"
COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges)
git log --pretty=format:"- %s (%h)" --no-merges >> release_notes.txt
else
echo "Generating changelog from $PREV_TAG to HEAD"
COMMITS=$(git log $PREV_TAG..HEAD --pretty=format:"- %s (%h)" --no-merges)
git log $PREV_TAG..HEAD --pretty=format:"- %s (%h)" --no-merges >> release_notes.txt
fi

NOTES="## What's Changed

$COMMITS

**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...v${VERSION}"
echo "" >> release_notes.txt
echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...v${VERSION}" >> release_notes.txt

# Save to file for multiline handling
echo "$NOTES" > release_notes.txt
echo "notes_file=release_notes.txt" >> $GITHUB_OUTPUT

- name: Commit version bump (if version was updated)
Expand Down