Skip to content

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

ci: Add workflow for readonly splits off main branch

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

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
deploy-key: ${{ secrets.DEPLOY_KEY_EXTENSION_INSTALLER }}

Check failure on line 17 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 17, Col: 25): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DEPLOY_KEY_EXTENSION_INSTALLER .github/workflows/publish.yml (Line: 20, Col: 25): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DEPLOY_KEY_FRACTOR
- path: fractor
repository: [email protected]:andreaswolf/fractor-fractor.git
deploy-key: ${{ secrets.DEPLOY_KEY_FRACTOR }}
- path: typo3-fractor
repository: [email protected]:andreaswolf/fractor-typo3-fractor.git
deploy-key: ${{ secrets.DEPLOY_KEY_TYPO3_FRACTOR }}
- path: fractor-xml
repository: [email protected]:andreaswolf/fractor-xml.git
deploy-key: ${{ secrets.DEPLOY_KEY_XML_FRACTOR }}
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: ${{ matrix.package.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