File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -302,8 +302,9 @@ jobs:
302302 extract_release_notes() {
303303 local body="$1"
304304
305- # Remove "Summary by CodeRabbit" section (including any content under it until the next header)
305+ # Remove "Summary by CodeRabbit" section and auto-generated comment line
306306 local cleaned_body="$(printf '%s\n' "$body" \
307+ | grep -v '<!-- end of auto-generated comment: release notes by coderabbit.ai -->' \
307308 | awk '
308309 BEGIN { skip=0 }
309310 /^## Summary by CodeRabbit/ { skip=1; next }
@@ -399,14 +400,14 @@ jobs:
399400 exit 0
400401 fi
401402
402- # Read release notes
403- RELEASE_NOTES=$(cat RELEASE_NOTES.md)
403+ # Read release notes and preserve markdown formatting
404+ RELEASE_NOTES=$(< RELEASE_NOTES.md)
404405 VERSION="7.${{ github.run_number }}"
405406
406- # Prepare JSON payload
407+ # Prepare JSON payload using --rawfile to properly handle multiline markdown
407408 PAYLOAD=$(jq -n \
408409 --arg version "$VERSION" \
409- --arg notes "$ RELEASE_NOTES" \
410+ --rawfile notes RELEASE_NOTES.md \
410411 --arg platform "android" \
411412 --arg buildNumber "${{ github.run_number }}" \
412413 --arg commitSha "${{ github.sha }}" \
You can’t perform that action at this time.
0 commit comments