Skip to content

Commit be8bd34

Browse files
committed
ci: use --body-file for competitive matrix PR body
Pass --summary to the script and use gh pr create --body-file to inject the markdown directly, avoiding shell interpolation of backticks from the mermaid code fences.
1 parent e0a2b63 commit be8bd34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-competitive-matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- run: pnpm install --frozen-lockfile
2626

2727
- name: Update competitive matrix
28-
run: npx tsx scripts/update-competitive-matrix.ts
28+
run: npx tsx scripts/update-competitive-matrix.ts --summary /tmp/matrix-summary.md
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

@@ -50,7 +50,7 @@ jobs:
5050
git push -u origin "$BRANCH"
5151
gh pr create \
5252
--title "Update competitive matrix" \
53-
--body "Automated weekly update based on competitor README analysis." \
53+
--body-file /tmp/matrix-summary.md \
5454
--base main
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)