Skip to content

Commit acd00e5

Browse files
committed
chore: update create_release script to include latest changelog
1 parent a76c75a commit acd00e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/create_release

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ URL="https://github.com/mattrighetti/envelope/blob/master/CHANGELOG.md"
66
TAG="$(git tag --points-at HEAD)"
77
REF="${TAG//./}---$(git show -s --format=%cd --date=short)"
88
CHANGELOG_REF="${URL}#${REF}"
9-
NOTES="[CHANGELOG](${CHANGELOG_REF})"
9+
# Extract the first block of text between ---, skipping the line immediately after ---
10+
CHANGELOG_NOTES=$(awk '/^- - -/{flag++; next} flag==1 && !skip {skip=1; next} flag==1' CHANGELOG.md)
11+
NOTES="${CHANGELOG_NOTES}\n\n[CHANGELOG](${CHANGELOG_REF})"
1012

1113
gh release create $1 --notes="${NOTES}"

0 commit comments

Comments
 (0)