Skip to content

Commit 83ec61e

Browse files
authored
Merge pull request #6 from mapswipe/feat/submodule-flow
2 parents e4289a5 + 5e1f9de commit 83ec61e

5 files changed

Lines changed: 27 additions & 13 deletions

File tree

.gitmodules

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
[submodule "mapswipe-firebase"]
2-
path = firebase
3-
url = git@github.com:mapswipe/mapswipe-firebase.git
2+
path = firebase
3+
url = git@github.com:mapswipe/mapswipe-firebase.git
4+
branch = v0.2.3
45
[submodule "mapswipe-backend"]
5-
path = backend
6-
url = git@github.com:mapswipe/mapswipe-backend.git
6+
path = backend
7+
url = git@github.com:mapswipe/mapswipe-backend.git
8+
branch = v0.2.4
79
[submodule "community-dashboard"]
8-
path = community-dashboard
9-
url = git@github.com:mapswipe/community-dashboard.git
10+
path = community-dashboard
11+
url = git@github.com:mapswipe/community-dashboard.git
12+
branch = v0.2.2
1013
[submodule "manager-dashboard"]
11-
path = manager-dashboard
12-
url = git@github.com:mapswipe/manager-dashboard.git
14+
path = manager-dashboard
15+
url = git@github.com:mapswipe/manager-dashboard.git
16+
branch = v0.2.3
1317
[submodule "website"]
14-
path = website
15-
url = git@github.com:mapswipe/website.git
18+
path = website
19+
url = git@github.com:mapswipe/website.git

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## New release
2+
3+
- Update `.gitmodules` file to include the correct `branch` tags
4+
- Run `scripts/sub-module-sync.sh` to refresh submodule references
5+
- Commit the changes and push to the repository
6+
17
## Setup
28

39
### Cloning the Repository

scripts/sub-module-sync.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -x
2+
3+
git submodule foreach 'git fetch'
4+
git submodule foreach 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'

taskfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ version: '3'
44

55
env:
66
MANAGER_DASHBOARD_COMMIT_HASH:
7-
sh: ./scripts/get_commit_hash.sh .git/modules/manager-dashboard
7+
sh: ./scripts/get-commit-hash.sh .git/modules/manager-dashboard
88
COMMUNITY_DASHBOARD_COMMIT_HASH:
9-
sh: ./scripts/get_commit_hash.sh .git/modules/community-dashboard
9+
sh: ./scripts/get-commit-hash.sh .git/modules/community-dashboard
1010
BACKEND_COMMIT_HASH:
11-
sh: ./scripts/get_commit_hash.sh .git/modules/mapswipe-backend
11+
sh: ./scripts/get-commit-hash.sh .git/modules/mapswipe-backend
1212

1313
tasks:
1414
# Web apps

0 commit comments

Comments
 (0)