Skip to content

Commit cf8a0cf

Browse files
committed
Patch bugs
1 parent fc9c346 commit cf8a0cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/prepare-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ echo "$VERSION" > VERSION
4343

4444
echo "Updating CHANGELOG"
4545

46-
# Get all commits in the current branch, excluding prepare release commits
47-
COMMITS=$(git log --oneline --no-merges --pretty=format:"%s" | grep -v "^Prepare for .* release$")
46+
# Get commits since the last release (stop at first "Prepare for X.Y.Z release" commit)
47+
COMMITS=$(git log --oneline --no-merges --pretty=format:"%s" | awk '/^Prepare for .* release$/ {exit} {print}' || true)
4848

4949
# Create the new changelog entry
5050
TEMP_CHANGELOG=$(mktemp)

0 commit comments

Comments
 (0)