We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 764e874 commit 84568dcCopy full SHA for 84568dc
tools/actions/create-release-proposal.sh
@@ -31,8 +31,9 @@ HEAD_SHA="$(git rev-parse HEAD^)"
31
32
TITLE="$(git log -1 --format=%s)"
33
34
-# Use a temporary file for the PR body
35
-TEMP_BODY="$(awk "/## ${RELEASE_DATE}/,/^<a id=/{ if (!/^<a id=/) print }" "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md")"
+TEMP_BODY="$(awk -v MAX_BODY_LENGTH="65536" \
+ "/^## ${RELEASE_DATE}/,/^<a id=/{ if (/^<a id=/) {exit;} if ((output_length += length(\$0)) > MAX_BODY_LENGTH) {exit 1;} print }" \
36
+ "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md" || echo "…")"
37
38
# Create the proposal branch
39
gh api \
0 commit comments