Skip to content

split and push github action #5

split and push github action

split and push github action #5

on:
push:
branches:
- main
jobs:
split-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- data-access-kit
- data-access-kit-symfony
steps:
- uses: actions/checkout@v2
- run: |
git config --global user.name "Jakub Kulhan"
git config --global user.email "ahoj@jakubkulhan.cz"
- run: git subtree split --prefix=${{ matrix.project }} --branch project-branch
- run: git push --force https://${{ secrets.PUSH_GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.project }}.git project-branch:main