Skip to content

Commit 390d0f2

Browse files
authored
[CI] Fix cherry-pick automation (#6448)
* [CI] Fix cherry-pick automation
1 parent a918738 commit 390d0f2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/cherry-pick.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,15 @@ jobs:
142142
NEW_TITLE="[Cherry-Pick] $PR_TITLE($PR_NUMBER)"
143143
fi
144144
145-
NEW_BODY=$(cat <<EOF
146-
Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
145+
NEW_BODY="Cherry-pick of #$PR_NUMBER (authored by @${PR_AUTHOR}) to \`$TARGET_BRANCH\`.
147146
148-
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
147+
devPR:https://github.com/PaddlePaddle/FastDeploy/pull/$PR_NUMBER <!-- For pass CI -->
149148
150-
---
149+
---
151150
152-
$PR_BODY
153-
EOF
154-
)
151+
$PR_BODY"
152+
# Remove leading whitespace
153+
NEW_BODY=$(echo "$NEW_BODY" | sed 's/^[ \t]*//')
155154
156155
# Prepare head ref for PR creation (owner:branch)
157156
HEAD_REF="${BOT_USERNAME}:${NEW_BRANCH}"

0 commit comments

Comments
 (0)