Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
[submodule "mapswipe-firebase"]
path = firebase
url = git@github.com:mapswipe/mapswipe-firebase.git
path = firebase
url = git@github.com:mapswipe/mapswipe-firebase.git
branch = v0.2.3
[submodule "mapswipe-backend"]
path = backend
url = git@github.com:mapswipe/mapswipe-backend.git
path = backend
url = git@github.com:mapswipe/mapswipe-backend.git
branch = v0.2.4
[submodule "community-dashboard"]
path = community-dashboard
url = git@github.com:mapswipe/community-dashboard.git
path = community-dashboard
url = git@github.com:mapswipe/community-dashboard.git
branch = v0.2.2
[submodule "manager-dashboard"]
path = manager-dashboard
url = git@github.com:mapswipe/manager-dashboard.git
path = manager-dashboard
url = git@github.com:mapswipe/manager-dashboard.git
branch = v0.2.3
[submodule "website"]
path = website
url = git@github.com:mapswipe/website.git
path = website
url = git@github.com:mapswipe/website.git
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## New release

- Update `.gitmodules` file to include the correct `branch` tags
- Run `scripts/sub-module-sync.sh` to refresh submodule references
- Commit the changes and push to the repository

## Setup

### Cloning the Repository
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions scripts/sub-module-sync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -x

git submodule foreach 'git fetch'
git submodule foreach 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'
6 changes: 3 additions & 3 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version: '3'

env:
MANAGER_DASHBOARD_COMMIT_HASH:
sh: ./scripts/get_commit_hash.sh .git/modules/manager-dashboard
sh: ./scripts/get-commit-hash.sh .git/modules/manager-dashboard
COMMUNITY_DASHBOARD_COMMIT_HASH:
sh: ./scripts/get_commit_hash.sh .git/modules/community-dashboard
sh: ./scripts/get-commit-hash.sh .git/modules/community-dashboard
BACKEND_COMMIT_HASH:
sh: ./scripts/get_commit_hash.sh .git/modules/mapswipe-backend
sh: ./scripts/get-commit-hash.sh .git/modules/mapswipe-backend

tasks:
# Web apps
Expand Down