ci: Add workflow for readonly splits off main branch #1
Workflow file for this run
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: publish | |
on: | |
push: | |
branches: | |
# TODO remove this | |
- 38-readonly-splits | |
- main | |
jobs: | |
subtree-split: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
- path: extension-installer | |
repository: [email protected]:andreaswolf/fractor-extension-installer.git | |
name: Split subtree ${{ matrix.package.path }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Split and push | |
run: | | |
SPLIT_REF=$(git subtree -P ${{ matrix.package.path }} split) | |
git push ${{ matrix.package.repository }} $SPLIT_REF:main |