Use rebase for upstream sync (#325)

This commit is contained in:
charleshofer 2025-03-27 11:58:59 -05:00 committed by GitHub
parent ec4b8ee1ed
commit 7b20b7c0b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ jobs:
- name: Create branch
run: |
git fetch
git checkout origin/main
git checkout origin/main
git checkout -b $SYNC_BRANCH_NAME
# Try and merge rocm-main into this new branch so that we don't run upstream's CI code
git config --global user.email "github-actions@github.com"
@ -60,7 +60,7 @@ jobs:
- name: Open a PR to rocm-main
run: |
gh pr create --repo $GITHUB_REPOSITORY --head $SYNC_BRANCH_NAME --base rocm-main --title "CI: $(date +%x) upstream sync" --body "Daily sync with upstream"
gh pr merge --repo $GITHUB_REPOSITORY --merge --auto $SYNC_BRANCH_NAME
gh pr merge --repo $GITHUB_REPOSITORY --rebase --auto $SYNC_BRANCH_NAME
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}