Skip to content

Commit 79a775b

Browse files
committed
[CI] Optimize cherry-pick automation
1 parent 19849a0 commit 79a775b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/cherry-pick.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,16 @@ jobs:
142142
NEW_TITLE="[Cherry-Pick] $PR_TITLE($PR_NUMBER)"
143143
fi
144144
145-
NEW_BODY="Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
145+
NEW_BODY=$(cat <<EOF
146+
Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
146147

147-
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
148+
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
148149

149-
---
150+
---
150151

151-
$PR_BODY"
152+
$PR_BODY
153+
EOF
154+
)
152155

153156
# Prepare head ref for PR creation (owner:branch)
154157
HEAD_REF="${BOT_USERNAME}:${NEW_BRANCH}"

0 commit comments

Comments
 (0)