Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit f5173b6

Browse files
committed
add update submodules workflow
1 parent cb441f6 commit f5173b6

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.github/workflows/submodules.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'update submodules'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
sync:
8+
name: 'update submodules'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout repo
12+
uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
- name: pull updates
16+
run: |
17+
git pull --recurse-submodules
18+
git submodule update --remote --recursive
19+
- name: commit changes
20+
uses: stefanzweifel/git-auto-commit-action@v4

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[submodule "api"]
22
path = api
33
url = [email protected]:notion-enhancer/api.git
4+
branch = dev
45
[submodule "repo"]
56
path = repo
67
url = [email protected]:notion-enhancer/repo.git
8+
branch = dev
79
[submodule "media"]
810
path = media
911
url = [email protected]:notion-enhancer/media.git
12+
branch = main
1013
[submodule "dep"]
1114
path = dep
1215
url = [email protected]:notion-enhancer/dep.git
16+
branch = main

dep

Submodule dep updated 1 file

0 commit comments

Comments
 (0)