diff --git a/.github/workflows/react-native-cicd.yml b/.github/workflows/react-native-cicd.yml index a9517a69..f560fd5e 100644 --- a/.github/workflows/react-native-cicd.yml +++ b/.github/workflows/react-native-cicd.yml @@ -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 '' \ | awk ' BEGIN { skip=0 } /^## Summary by CodeRabbit/ { skip=1; next } @@ -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=$(