Skip to content

Commit 050ce3d

Browse files
committed
fix: update checkout commands to correctly reference base and head branches
1 parent e8f5aa6 commit 050ce3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ runs:
136136
git remote add upstream $'${{ steps.safe-strings.outputs.url }}'
137137
git fetch --deepen=$ALL upstream $'${{ steps.safe-strings.outputs.head_ref }}'
138138
git checkout -b $'upstream/${{ steps.safe-strings.outputs.head_ref}}' $'upstream/${{ steps.safe-strings.outputs.head_ref}}'
139+
git checkout origin/${{ steps.safe-strings.outputs.base_ref }}
140+
git checkout upstream/${{ steps.safe-strings.outputs.head_ref }}
139141
140142
- name: Create cm folder
141143
if: ${{ env.SHOULD_CHECKOUT == 'true' }}

0 commit comments

Comments
 (0)