Skip to content

Commit 6ab3e45

Browse files
authored
chore: subtree split token (#6125)
1 parent ceb105b commit 6ab3e45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/subtree.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
chmod +x splitsh-lite
2727
echo "$(pwd)" >> $GITHUB_PATH
2828
- name: 'Split to manyrepo'
29-
run: find src -maxdepth 2 -name composer.json -exec bash subtree.sh {} ${{ github.ref }} \;
29+
run: find src -maxdepth 2 -name composer.json -print0 | xargs -I '{}' -n 1 -0 bash subtree.sh {} ${{ github.ref }}

subtree.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -x
44

55
# Subtree split on tag this script gets called using find:
6-
# find src -maxdepth 2 -name composer.json -exec bash subtree.sh {} refs/tags/3.1.5 \;
7-
# find src -maxdepth 2 -name composer.json -exec bash subtree.sh {} refs/heads/3.1 \;
6+
# find src -maxdepth 2 -name composer.json -print0 | xargs -I '{}' -n 1 -0 bash subtree.sh {} refs/tags/3.1.5
7+
# find src -maxdepth 2 -name composer.json -print0 | xargs -I '{}' -n 1 -0 bash subtree.sh {} refs/heads/3.1
88
# See the subtree workflow
99
package=$(jq -r .name $1)
1010
directory=$(dirname $1)

0 commit comments

Comments
 (0)