Skip to content

Commit 60ccf59

Browse files
committed
add sync submodules
1 parent 735229b commit 60ccf59

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ concurrency: release-docs
44

55
on:
66
workflow_dispatch:
7+
workflow_run:
8+
workflows: ["Synchronize submodules"]
9+
types:
10+
- completed
711
push:
812
branches:
913
- 'docs-*'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Synchronize submodules
2+
3+
concurrency: update-submodules
4+
5+
on:
6+
repository_dispatch:
7+
types: [update-submodules]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
submodules: "recursive"
17+
- name: Sync submodules and commit
18+
run: |
19+
git config user.name "fullstack-devops[bot]"
20+
git config user.email "fullstack-devops[bot]@users.noreply.github.com"
21+
git pull --recurse-submodules
22+
git status
23+
git commit -a -m "submodules synchronized"
24+
git push

0 commit comments

Comments
 (0)