Skip to content

Commit 2cdfe05

Browse files
committed
fix: git ops in pi_merge_submodule
1 parent 398ea50 commit 2cdfe05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pi_merge_submodule.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ jobs:
110110
- name: Clone ${{ matrix.app }}
111111
run: |
112112
git clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.app }}.git
113-
cd ${{ matrix.app }}
113+
cd ${{ github.workspace }}/${{ matrix.app }}
114114
115115
git config user.email "devtools@kern.ai"
116116
git config user.name "GitHub Actions"
117117
118118
git checkout -b ${{ needs.configure-branch-name.outputs.gh_head_ref }} || git checkout ${{ needs.configure-branch-name.outputs.gh_head_ref }}
119-
git pull origin ${{ needs.configure-branch-name.outputs.gh_head_ref }} && git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
119+
git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }} && git pull origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
120120
121121
- name: Compile Requirements
122122
run: |
@@ -130,7 +130,7 @@ jobs:
130130
131131
- name: Perform Edit/Git Operations
132132
run: |
133-
cd ${{ matrix.app }}
133+
cd ${{ github.workspace }}/${{ matrix.app }}
134134
135135
git add requirements*
136136
git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt" || true

0 commit comments

Comments
 (0)