Skip to content

Commit

Permalink
ci: Use rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Nov 4, 2023
1 parent 06f3049 commit d25521a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/merge-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ jobs:
git remote add upstream ${{ matrix.upstream }}
git fetch upstream ${{ matrix.upstream_branch }}
- name: Make a temporary branch
run: |
git switch -C tmp upstream/${{ matrix.upstream_branch }}
- name: Cherry pick commits
run: |
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
git cherry-pick --strategy ort -X theirs ..${{ matrix.base_ref }}
git rebase --reapply-cherry-picks --keep-base \
upstream/${{ matrix.upstream_branch }}
- name: Push changes
uses: ad-m/github-push-action@master
Expand Down

0 comments on commit d25521a

Please sign in to comment.