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 f7de86b commit f914701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
- name: Install Splitsh
shell: bash
run: go build -o ./splitsh-lite github.com/splitsh/lite
run: go install 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 f914701

Please sign in to comment.