Skip to content

Commit

Permalink
chore: fix release script with current release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tqwewe committed Nov 15, 2024
1 parent 421272e commit 1c766b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ git tag -a "v$NEW_VERSION" -m ""
git push origin "v$NEW_VERSION"

echo "Creating CHANGELOG-Release.md for release notes"
git cliff --tag "$NEW_VERSION" --output ./CHANGELOG-Release.md --unreleased
git cliff --tag "$NEW_VERSION" --output ./CHANGELOG-Release.md --current

# Extract the release date from the CHANGELOG-Release.md file
RELEASE_DATE=$(grep '^## \['"$NEW_VERSION"'\] - ' CHANGELOG-Release.md | sed -E 's/.* - ([0-9]{4}-[0-9]{2}-[0-9]{2})$/\1/')
Expand Down

0 comments on commit 1c766b4

Please sign in to comment.