You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo -e "\nThis PR contains all changes that will be included in the next release. It is automatically updated when new changesets are added to the develop branch." >> /tmp/pr_body.md
189
+
PR_BODY="${PR_BODY}"$'\n\n'
190
+
PR_BODY="${PR_BODY}This PR contains all changes that will be included in the next release. It is automatically updated when new changesets are added to the develop branch."
192
191
193
-
# Read the complete PR body and escape it for JSON
194
-
PR_BODY=$(cat /tmp/pr_body.md)
195
-
196
-
# Use jq to properly escape the content for JSON
197
-
PAYLOAD=$(jq -n \
198
-
--arg body "$PR_BODY" \
199
-
--arg title "$PR_TITLE" \
200
-
'{body: $arg.body, title: $arg.title}')
192
+
# Use jq to properly escape the content
193
+
PAYLOAD=$(jq -n --arg body "$PR_BODY" --arg title "$PR_TITLE" '{body: $body, title: $title}')
201
194
202
195
# For debugging
203
196
echo "API Payload:"
@@ -220,31 +213,27 @@ jobs:
220
213
- name: Create new release PR
221
214
if: steps.check_pr.outputs.exists == 'false'
222
215
run: |
223
-
# Create the PR body using heredoc to preserve special characters
224
-
cat > /tmp/pr_body.md << 'EOL'
225
-
## Upcoming Changes
226
-
227
-
$(cat /tmp/release-notes/temp_notes.md)
228
-
EOL
229
-
230
-
# Add @since updates section if there are any, using printf to handle special characters
echo -e "\nThis PR contains all changes that will be included in the next release. It is automatically updated when new changesets are added to the develop branch." >> /tmp/pr_body.md
237
-
238
-
# Read the complete PR body and escape it for JSON
239
-
PR_BODY=$(cat /tmp/pr_body.md)
227
+
PR_BODY="${PR_BODY}"$'\n\n'
228
+
PR_BODY="${PR_BODY}This PR contains all changes that will be included in the next release. It is automatically updated when new changesets are added to the develop branch."
0 commit comments