Skip to content

Commit 23a0c23

Browse files
committed
fix: enhance checkout process by configuring default remote and ensuring proper branch checkouts
1 parent ac4daf0 commit 23a0c23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ runs:
132132
run: |
133133
ALL=2147483647
134134
cd gitstream && cd repo
135+
git config checkout.defaultRemote origin
135136
git fetch --deepen=$ALL origin $'${{ steps.safe-strings.outputs.base_ref }}'
136137
git remote add upstream $'${{ steps.safe-strings.outputs.url }}'
137138
git fetch --deepen=$ALL upstream $'${{ steps.safe-strings.outputs.head_ref }}'
138139
git checkout -b $'upstream/${{ steps.safe-strings.outputs.head_ref}}' $'upstream/${{ steps.safe-strings.outputs.head_ref}}'
140+
git checkout $'${{ steps.safe-strings.outputs.base_ref }}'
141+
git checkout $'${{ steps.safe-strings.outputs.head_ref }}'
139142
140143
- name: Create cm folder
141144
if: ${{ env.SHOULD_CHECKOUT == 'true' }}

0 commit comments

Comments
 (0)