Skip to content

Commit a664561

Browse files
authored
fix (#643)
1 parent 4ee8069 commit a664561

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
GH_TOKEN: ${{ github.token }}
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Create Pull Request to the next higher release version
1919

@@ -33,10 +33,13 @@ jobs:
3333
NEXT_BRANCH="main"
3434
set -x
3535
fi
36+
git -v
37+
git config user.name "github-actions[bot]"
38+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git checkout $NEXT_BRANCH
3639
git checkout $NEXT_BRANCH
3740
FROM=${{github.event.commits[0].id}}
3841
TO=${{github.event.head_commit.id}}
39-
git cherry-pick -X theirs $FROM || true
40-
gh pr create
42+
git cherry-pick -X theirs $TO || true
43+
gh pr create \
4144
--title "Auto PR from release/$CURRENT_VERSION" \
4245
--body 'Created by Github action'

0 commit comments

Comments
 (0)