Skip to content

Commit a5ee6dc

Browse files
committed
Fix upstream sync checkout (#130)
* Checkout main before trying to switch to it * Fix the checkout command
1 parent 7831066 commit a5ee6dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030
- name: Create branch
3131
run: |
32-
git checkout -b $SYNC_BRANCH_NAME main
32+
git checkout origin/main
33+
git checkout -b $SYNC_BRANCH_NAME
3334
git push origin HEAD
3435
open-sync-pr:
3536
needs: create-sync-branch

0 commit comments

Comments
 (0)