Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/react-native-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,9 @@ jobs:
extract_release_notes() {
local body="$1"

# Remove "Summary by CodeRabbit" section (including any content under it until the next header)
# Remove "Summary by CodeRabbit" section and auto-generated comment line
local cleaned_body="$(printf '%s\n' "$body" \
| grep -v '<!-- end of auto-generated comment: release notes by coderabbit.ai -->' \
| awk '
BEGIN { skip=0 }
/^## Summary by CodeRabbit/ { skip=1; next }
Expand Down Expand Up @@ -399,14 +400,14 @@ jobs:
exit 0
fi

# Read release notes
RELEASE_NOTES=$(cat RELEASE_NOTES.md)
# Read release notes and preserve markdown formatting
RELEASE_NOTES=$(<RELEASE_NOTES.md)
VERSION="7.${{ github.run_number }}"

# Prepare JSON payload
# Prepare JSON payload using --rawfile to properly handle multiline markdown
PAYLOAD=$(jq -n \
--arg version "$VERSION" \
--arg notes "$RELEASE_NOTES" \
--rawfile notes RELEASE_NOTES.md \
--arg platform "android" \
--arg buildNumber "${{ github.run_number }}" \
--arg commitSha "${{ github.sha }}" \
Expand Down
Loading