Skip to content

Commit 7999020

Browse files
committed
fix: properly quote multiline gh pr create body in update.yml
1 parent 3ce369b commit 7999020

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

.github/workflows/update.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -334,22 +334,7 @@ jobs:
334334
# Create PR
335335
gh pr create \
336336
--title "chore: Update ${UPDATES_COUNT} submodule(s) to latest" \
337-
--body "## 🔄 Automated Submodule Update
338-
339-
This PR updates submodules that have fallen behind by 5 or more commits.
340-
341-
**Updated Submodules:** ${{ steps.check_submodules.outputs.updates_list }}
342-
343-
**Triggered by:** [Repository Update Workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
344-
**Threshold:** ${{ github.event.inputs.submodule_threshold || '5' }} commits
345-
346-
**What to Check:**
347-
- Review each submodule's changes between old and new commit
348-
- Ensure no breaking changes were introduced
349-
- Verify monorepo compatibility
350-
- Run tests locally if needed
351-
352-
Once approved, this will bring submodules up to date with their respective main branches." \
337+
--body $'## 🔄 Automated Submodule Update\n\nThis PR updates submodules that have fallen behind by 5 or more commits.\n\n**Updated Submodules:** ${{ steps.check_submodules.outputs.updates_list }}\n\n**Triggered by:** [Repository Update Workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})\n**Threshold:** ${{ github.event.inputs.submodule_threshold || '"'"'5'"'"' }} commits\n\n**What to Check:**\n- Review each submodule'"'"'s changes between old and new commit\n- Ensure no breaking changes were introduced\n- Verify monorepo compatibility\n- Run tests locally if needed\n\nOnce approved, this will bring submodules up to date with their respective main branches.' \
353338
--base "${{ github.ref_name }}" \
354339
--head "$BRANCH_NAME" \
355340
--label "automated,dependencies,submodules"

workflows-templates/update.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -356,22 +356,7 @@ jobs:
356356
# Create PR
357357
gh pr create \
358358
--title "chore: Update ${UPDATES_COUNT} submodule(s) to latest" \
359-
--body "## 🔄 Automated Submodule Update
360-
361-
This PR updates submodules that have fallen behind by 5 or more commits.
362-
363-
**Updated Submodules:** ${{ steps.check_submodules.outputs.updates_list }}
364-
365-
**Triggered by:** [Repository Update Workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
366-
**Threshold:** ${{ github.event.inputs.submodule_threshold || '5' }} commits
367-
368-
**What to Check:**
369-
- Review each submodule's changes between old and new commit
370-
- Ensure no breaking changes were introduced
371-
- Verify monorepo compatibility
372-
- Run tests locally if needed
373-
374-
Once approved, this will bring submodules up to date with their respective main branches." \
359+
--body $'## 🔄 Automated Submodule Update\n\nThis PR updates submodules that have fallen behind by 5 or more commits.\n\n**Updated Submodules:** ${{ steps.check_submodules.outputs.updates_list }}\n\n**Triggered by:** [Repository Update Workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})\n**Threshold:** ${{ github.event.inputs.submodule_threshold || '"'"'5'"'"' }} commits\n\n**What to Check:**\n- Review each submodule'"'"'s changes between old and new commit\n- Ensure no breaking changes were introduced\n- Verify monorepo compatibility\n- Run tests locally if needed\n\nOnce approved, this will bring submodules up to date with their respective main branches.' \
375360
--base "${{ github.ref_name }}" \
376361
--head "$BRANCH_NAME" \
377362
--label "automated,dependencies,submodules"

0 commit comments

Comments
 (0)