-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 988 Bytes
/
split-and-push.yaml
File metadata and controls
31 lines (30 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Split & Push
on:
push:
branches:
- main
jobs:
split-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- data-access-kit
- data-access-kit-symfony
- data-access-kit-replication
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- run: |
git config --global user.name "Jakub Kulhan"
git config --global user.email "ahoj@jakubkulhan.cz"
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.DATA_ACCESS_KIT_DEPLOY_KEY }}
${{ secrets.DATA_ACCESS_KIT_SYMFONY_DEPLOY_KEY }}
${{ secrets.DATA_ACCESS_KIT_REPLICATION_DEPLOY_KEY }}
- run: git subtree split --prefix=${{ matrix.project }} --branch project-branch
- run: git push --force git@github.com:${{ github.repository_owner }}/${{ matrix.project }}.git project-branch:main