Skip to content

Commit 253e7a3

Browse files
committed
RU-T39 Working on Changerawr build step
1 parent 4da672c commit 253e7a3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }}" \

0 commit comments

Comments
 (0)