From 55e65a64ba7f2f233deb37019e16d62b2a9d2da4 Mon Sep 17 00:00:00 2001 From: BrunoGaoSZ Date: Sat, 28 Feb 2026 17:58:25 +0100 Subject: [PATCH] fix: escape YAML alias in build-and-notify pr body (use --body-file) Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-and-notify.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-notify.yml b/.github/workflows/build-and-notify.yml index c432d50..a796f18 100644 --- a/.github/workflows/build-and-notify.yml +++ b/.github/workflows/build-and-notify.yml @@ -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}"