Skip to content

Commit 2f28601

Browse files
authored
Fix upstream PR workflow to use origin branches (#151)
1 parent 3be7c1e commit 2f28601

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/rocm-open-upstream-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
- name: Rebase code to main
2222
run: |
23-
git checkout -b $NEW_BRANCH_NAME ${{ github.head_ref }}
24-
git rebase --onto main
23+
git fetch
24+
git checkout -b $NEW_BRANCH_NAME origin/${{ github.head_ref }}
25+
git rebase --onto origin/main
2526
git push origin HEAD
2627
# TODO: Change the base of the PR to upstream main
2728
- name: Create a PR to upstream

0 commit comments

Comments
 (0)