Apply fixes from StyleCI (#357) #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Split monorepo via splitsh-lite | |
name: Split monorepo | |
on: | |
push: | |
branches: [main] | |
jobs: | |
split: | |
name: split | |
strategy: | |
matrix: | |
library: ['Files', 'Data', 'Cookies', 'Session', 'Container', 'Archive'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ./splitsh | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }} | |
- name: Install splitsh | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir ./splitsh | |
wget https://github.com/splitsh/lite/releases/download/v1.0.1/lite_linux_amd64.tar.gz | |
tar -zxpf lite_linux_amd64.tar.gz --directory ./splitsh | |
- name: Split and update ${{ matrix.library }} | |
run: | | |
SHA1=`./splitsh/splitsh-lite --prefix=src/${{ matrix.library }}` | |
git remote add ${{ matrix.library }} https://${{ secrets.AUTH_TOKEN }}@github.com/alphazframework/${{ matrix.library }} | |
git push -f ${{ matrix.library }} ${SHA1}:refs/heads/ref/heads/main |