Skip to content

Commit fef7f53

Browse files
committed
Fix release notes parser
1 parent 063bc11 commit fef7f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/release-parser.sh renamed to .ci/release-notes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ set -o pipefail
1818
# How to use:
1919
# release-notes.sh CHANGELOG.md
2020

21-
startline=$(cat "$1" | grep -nE "^### " | head -n 1 | cut -d ":" -f 1)
22-
finishline=$(($(cat "$1" | grep -nE "^## \[\d" | head -n 2 | tail -n 1 | cut -d ":" -f 1) - 1))
21+
startline=$(cat "$1" | grep -nE '^### ' | head -n 1 | cut -d ":" -f 1)
22+
finishline=$(($(cat "$1" | grep -nE '^## \[[0-9]+' | head -n 2 | tail -n 1 | cut -d ":" -f 1) - 1))
2323
changelog=$(sed -n "${startline},${finishline}p" "$1");
2424

2525

0 commit comments

Comments
 (0)