mirror of
https://github.com/github/spec-kit.git
synced 2026-03-20 04:13:08 +00:00
chore: bump version to 0.3.2 (#1909)
* chore: bump version to 0.3.2 * fix: correct changelog generation — use tag sort instead of git describe, remove duplicate entries - Replace git describe --tags --abbrev=0 with git tag --sort=-version:refname to find the correct previous tag (git describe misses tags on unmerged release branches) - Change changelog section heading from '### Changed' to '### Changes' - Remove duplicate entries from 0.3.2 that belonged to prior releases - Clean up changelog preamble and stale entries --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/release-trigger.yml
vendored
8
.github/workflows/release-trigger.yml
vendored
@@ -86,8 +86,10 @@ jobs:
|
||||
if [ -f "CHANGELOG.md" ]; then
|
||||
DATE=$(date +%Y-%m-%d)
|
||||
|
||||
# Get the previous tag to compare commits
|
||||
PREVIOUS_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
||||
# Get the previous tag by sorting all version tags numerically
|
||||
# (git describe --tags only finds tags reachable from HEAD,
|
||||
# which misses tags on unmerged release branches)
|
||||
PREVIOUS_TAG=$(git tag -l 'v*' --sort=-version:refname | head -n 1)
|
||||
|
||||
echo "Generating changelog from commits..."
|
||||
if [[ -n "$PREVIOUS_TAG" ]]; then
|
||||
@@ -104,7 +106,7 @@ jobs:
|
||||
echo ""
|
||||
echo "## [${{ steps.version.outputs.version }}] - $DATE"
|
||||
echo ""
|
||||
echo "### Changed"
|
||||
echo "### Changes"
|
||||
echo ""
|
||||
echo "$COMMITS"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user