Skip to content

Commit

Permalink
Use SplitSH to split monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamner committed May 24, 2024
1 parent 9ff63d6 commit 333dd98
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ jobs:
- name: Install Splitsh
shell: bash
run: |
apt-get update && apt-get install -y libgit2 golang-go
go build -o splitsh-lite github.com/splitsh/lite
run: go build -o ./splitsh-lite github.com/splitsh/lite
- name: Split MonoRepo
shell: bash
run: |
git remote add ${{ matrix.packages.target_repo }} git@github.com:boxuk/${{ matrix.packages.target_repo }}.git || true
SHA1=`splitsh-lite --prefix=pacakges/${{ matrix.packages.local_path }}`
SHA1=`./splitsh-lite --prefix=pacakges/${{ matrix.packages.local_path }}`
git push ${{ matrix.packages.target_repo }} "$SHA1:refs/heads/main" -f

0 comments on commit 333dd98

Please sign in to comment.