Skip to content

Commit 971c60f

Browse files
committed
chore (ci):... [skip ci]
1 parent 01d8c78 commit 971c60f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/update-submodules.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,19 @@ jobs:
4646
echo "::set-output name=needs_update::false"
4747
fi
4848
49-
- name: Create new branch and commit changes
49+
- name: Create a new branch for changes
5050
if: steps.update_submodules.outputs.needs_update == 'true'
5151
run: |
5252
git checkout -b update-submodules-branch
53-
git add .
54-
git commit -m "Update submodules to latest commits"
5553
56-
- name: Pull latest changes from remote
54+
- name: Commit and push changes
5755
if: steps.update_submodules.outputs.needs_update == 'true'
5856
run: |
59-
git pull --rebase origin update-submodules-branch || true
60-
61-
- name: Push changes
62-
if: steps.update_submodules.outputs.needs_update == 'true'
63-
run: |
64-
git push origin update-submodules-branch
57+
git add .
58+
git commit -m "Update submodules to latest commits"
59+
git push origin update-submodules-branch --force
6560
66-
- name: Create Pull Request
61+
- name: Create or update Pull Request
6762
if: steps.update_submodules.outputs.needs_update == 'true'
6863
uses: peter-evans/create-pull-request@v5
6964
with:

0 commit comments

Comments
 (0)