Skip to content

Commit c14b25b

Browse files
authored
fix (#640)
1 parent 502c597 commit c14b25b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ jobs:
3636
git checkout $NEXT_BRANCH
3737
FROM=${{github.event.commits[0].id}}
3838
TO=${{github.event.head_commit.id}}
39-
BRANCH=auto_pr/$NEXT_VERSION/$FROM-$TO
40-
git checkout -b $BRANCH
41-
git cherry-pick -X theirs $FROM~..$TO || (echo "$FROM~..$TO" > cherry-pick-failed.txt)
42-
git push
43-
gh pr create --base "$BRANCH" --head "release/$CURRENT_VERSION" \
39+
git cherry-pick -X theirs $FROM~..$TO || (echo "$FROM~..$TO" > cherry-pick-failed.txt; git add cherry-pick-failed.txt; git commit -m cherry-pick-failed.txt)
40+
gh pr create
4441
--title "Auto PR from release/$CURRENT_VERSION" \
4542
--body 'Created by Github action'

0 commit comments

Comments
 (0)