[CI] Fix cherry-pick automation (#6448)

* [CI] Fix cherry-pick automation
This commit is contained in:
YuBaoku
2026-02-10 22:45:29 +08:00
committed by GitHub
parent a918738b8f
commit 390d0f2d77
+6 -7
View File
@@ -142,16 +142,15 @@ jobs:
NEW_TITLE="[Cherry-Pick] $PR_TITLE($PR_NUMBER)"
fi
NEW_BODY=$(cat <<EOF
Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
NEW_BODY="Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
---
---
$PR_BODY
EOF
)
$PR_BODY"
# Remove leading whitespace
NEW_BODY=$(echo "$NEW_BODY" | sed 's/^[ \t]*//')
# Prepare head ref for PR creation (owner:branch)
HEAD_REF="${BOT_USERNAME}:${NEW_BRANCH}"