Merge 3.1 #382
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
name: subtree | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
- 3.1 | |
- 3.2 | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
split: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_TOKEN }} | |
- name: 'Install splitsh' | |
run: | | |
curl -L https://github.com/splitsh/lite/releases/download/v1.0.1/lite_linux_amd64.tar.gz > lite_linux_amd64.tar.gz | |
tar -zxpf lite_linux_amd64.tar.gz | |
chmod +x splitsh-lite | |
echo "$(pwd)" >> $GITHUB_PATH | |
- name: 'Split to manyrepo' | |
run: find src -maxdepth 2 -name composer.json -exec bash subtree.sh {} ${{ github.ref }} \; |