Skip to content

Commit 44654e7

Browse files
committed
Merge branch '6-dev' into overview-todo
2 parents 766e484 + 7dc5821 commit 44654e7

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

.github/workflows/update_submodule.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,27 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
build_deploy:
7+
update_submodules:
88
runs-on: ubuntu-latest
99
steps:
1010
# Checkout
1111
- uses: actions/checkout@v3
1212
with:
1313
ref: 6-dev
14-
15-
# Pull latest plone.api
16-
- name: Pull latest plone.api
17-
run: |
18-
cd submodules/plone.api
19-
git pull
20-
21-
# Pull latest plone.restapi
22-
- name: Pull latest plone.restapi
23-
run: |
24-
cd submodules/plone.restapi
25-
git pull
14+
submodules: true
2615

27-
# Pull latest Volto
28-
- name: Pull latest Volto
16+
- name: Submodule update
2917
run: |
30-
cd submodules/volto
31-
git pull
18+
git status
19+
git submodule update --init --recursive
20+
git submodule update --remote --recursive
3221
33-
# Update, commit, and push
34-
- name : Update tips
22+
- name: Commit updates
3523
run: |
3624
git status
3725
git add submodules/plone.api submodules/plone.restapi submodules/volto
26+
git status
3827
git config user.name github-actions
3928
git config user.email [email protected]
40-
git diff --exit-code && git commit -m "Update submodules tip" && git push
29+
git commit -m "Update submo0dules tip" || echo "No changes to commit"
30+
git push

0 commit comments

Comments
 (0)