Skip to content

ci: Add workflow for readonly splits off main branch #7

ci: Add workflow for readonly splits off main branch

ci: Add workflow for readonly splits off main branch #7

Workflow file for this run

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
- path: fractor
repository: [email protected]:andreaswolf/fractor-fractor.git
- path: typo3-fractor
repository: [email protected]:andreaswolf/fractor-typo3-fractor.git
- path: fractor-xml
repository: [email protected]:andreaswolf/fractor-xml.git
name: Split subtree ${{ matrix.package.path }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # ensure the complete Git history is available
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Split and push
run: |
SPLIT_REF=$(git subtree -P ${{ matrix.package.path }} split)
git push ${{ matrix.package.repository }} $SPLIT_REF:${{ github.event.ref }} -f