forked from api-platform/core
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 810 Bytes
/
Copy pathsubtree.yml
File metadata and controls
32 lines (30 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: subtree
on:
push:
tags:
- v*
branches:
- main
- '3.1'
- '3.2'
- '3.3'
- '3.4'
- '4.0'
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
split:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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 3 -name composer.json -print0 | xargs -I '{}' -n 1 -0 bash subtree.sh {} ${{ github.ref }}