fix: escape YAML alias in build-and-notify pr body (use --body-file)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
BrunoGaoSZ
2026-02-28 17:58:25 +01:00
co-authored by Claude Sonnet 4.6
parent 343b188138
commit 55e65a64ba
+3 -4
View File
@@ -134,13 +134,12 @@ jobs:
git add apps/agent-platform/overlays/prod/kustomization.yaml
git commit -m "release(agent-platform): ${SHORT_SHA}"
git push origin "${BRANCH}"
printf 'Automated release PR from BrunoGao/agent-platform@%s\n\nAPI `harbor.eu.lingjingwanxiang.cn/ljwx/agent-platform-api:%s`\n' \
"${GIT_SHA}" "${SHORT_SHA}" > /tmp/pr-body.txt
gh pr create \
--repo "BrunoGaoSZ/ljwx-deploy" \
--title "release(agent-platform): ${SHORT_SHA}" \
--body "Automated release PR from BrunoGao/agent-platform@${GIT_SHA}
**API** \`harbor.eu.lingjingwanxiang.cn/ljwx/agent-platform-api:${SHORT_SHA}\`
" \
--body-file /tmp/pr-body.txt \
--base main \
--head "${BRANCH}"