Skip to content

Commit 8e40fbe

Browse files
committed
perf: commit to parent repositories dev branch
1 parent dcdec12 commit 8e40fbe

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/pi_merge_submodule.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,15 @@ jobs:
4949
fetch-depth: 0
5050
submodules: 'true'
5151

52-
- name: Set up Python
53-
uses: actions/setup-python@v5
54-
with:
55-
python-version: ${{ env.PYTHON_VERSION }}
56-
57-
- name: Install Dependencies
58-
run: python -m pip install pip-tools
59-
6052
- name: Perform Edit/Git Operations
6153
run: |
62-
cd ${{ github.workspace }}/submodules/parent-images
63-
git checkout ${{ github.event.pull_request.base.ref }}
64-
65-
cd ${{ github.workspace }}
66-
git checkout ${{ needs.configure-branch-name.outputs.gh_head_ref }} || git checkout -b ${{ needs.configure-branch-name.outputs.gh_head_ref }}
67-
git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }} && git pull origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
68-
6954
git config user.email "devtools@kern.ai"
7055
git config user.name "GitHub Actions"
7156
7257
git add submodules
73-
git commit -m "ci: update submodules to origin/${{ needs.configure-branch-name.outputs.gh_head_ref }}" || true
74-
git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
75-
echo "::notice::${{ github.event.repository.name }} updated to origin/${{ needs.configure-branch-name.outputs.gh_head_ref }}"
58+
git commit -m "ci: update submodules to origin/${{ github.event.pull_request.base.ref }}" || true
59+
git push origin ${{ github.event.pull_request.base.ref }}
60+
echo "::notice::${{ github.event.repository.name }} updated to origin/${{ github.event.pull_request.base.ref }}"
7661
7762
gh pr create --draft \
7863
--title "${{ github.event.pull_request.title }}" \

0 commit comments

Comments
 (0)