update threejs #70
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: Branch Management | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Create branches from subdirectories | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Create branches from subdirectories | |
run: | | |
for dir in $(find . -mindepth 3 -maxdepth 3 -type d ! -path "./.git*"); do | |
dir=${dir#./} | |
git subtree split --prefix=$dir --branch $dir | |
git push origin $dir | |
done |