Skip to content

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

ci: Add workflow for readonly splits off main branch

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

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
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:refs/heads/main -f