Skip to content

Commit 7b20b7c

Browse files
authored
Use rebase for upstream sync (#325)
1 parent ec4b8ee commit 7b20b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rocm-nightly-upstream-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Create branch
3939
run: |
4040
git fetch
41-
git checkout origin/main
41+
git checkout origin/main
4242
git checkout -b $SYNC_BRANCH_NAME
4343
# Try and merge rocm-main into this new branch so that we don't run upstream's CI code
4444
git config --global user.email "[email protected]"
@@ -60,7 +60,7 @@ jobs:
6060
- name: Open a PR to rocm-main
6161
run: |
6262
gh pr create --repo $GITHUB_REPOSITORY --head $SYNC_BRANCH_NAME --base rocm-main --title "CI: $(date +%x) upstream sync" --body "Daily sync with upstream"
63-
gh pr merge --repo $GITHUB_REPOSITORY --merge --auto $SYNC_BRANCH_NAME
63+
gh pr merge --repo $GITHUB_REPOSITORY --rebase --auto $SYNC_BRANCH_NAME
6464
env:
6565
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
6666

0 commit comments

Comments
 (0)