Skip to content

com.utilities.rest 2.3.0 (#54) #55

com.utilities.rest 2.3.0 (#54)

com.utilities.rest 2.3.0 (#54) #55

name: upm-subtree-split
on:
push:
branches:
- main
jobs:
upm-subtree-split:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: upm subtree split
run: |
$packageDir = Get-Item -Path "**/Packages/com.*" | Select-Object -ExpandProperty FullName
$packageDir = $packageDir.replace('${{ github.workspace }}/','')
Write-Host $packageDir
git subtree split --prefix="$packageDir" -b upm
git push -u origin upm --force
working-directory: ${{ github.workspace }}
shell: pwsh