Skip to content

Commit f728610

Browse files
Co-authored-by: Coldwings <coldwings@me.com>
1 parent a0b7541 commit f728610

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/auto-pr-precise.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ jobs:
5757
set -x
5858
git checkout ${{steps.branch_info.outputs.NEXT_BRANCH}}
5959
git checkout -b ${{steps.create_branch.outputs.PRBRANCH}}
60-
TITLE=$(git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | xargs -0)
61-
echo "TITLE=$TITLE" >> $GITHUB_OUTPUT
62-
echo "MESSAGE<<__EOF" >> $GITHUB_OUTPUT
60+
echo "TITLE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT
61+
git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | tr '\n' ' ' >> $GITHUB_OUTPUT
62+
echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT
63+
echo "MESSAGE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT
6364
git log --format="> %B" ${{ github.event.commits[0].id }}~..${{ github.event.after }} >> $GITHUB_OUTPUT
64-
echo "__EOF" >> $GITHUB_OUTPUT
65+
echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT
6566
cat $GITHUB_OUTPUT
6667
REVS=$(git rev-list --reverse ${{ github.event.commits[0].id }}~..${{ github.event.after }} )
6768
for rev in "$REVS"; do
@@ -88,4 +89,3 @@ jobs:
8889
base: `${{steps.branch_info.outputs.NEXT_BRANCH}}`,
8990
body: process.env.MESSAGE + `\nGenerated by Auto PR, by cherry-pick related commits`,
9091
});
91-

0 commit comments

Comments
 (0)