-
-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (72 loc) · 3.27 KB
/
split.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: 'Packages Split'
on:
workflow_dispatch: null
push:
branches:
- main
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'rekapager-bundle'
split_repository: 'rekapager-bundle'
-
local_path: 'rekapager-contracts'
split_repository: 'rekapager-contracts'
-
local_path: 'rekapager-core'
split_repository: 'rekapager-core'
-
local_path: 'rekapager-doctrine-collections-adapter'
split_repository: 'rekapager-doctrine-collections-adapter'
-
local_path: 'rekapager-doctrine-orm-adapter'
split_repository: 'rekapager-doctrine-orm-adapter'
-
local_path: 'rekapager-keyset-pagination'
split_repository: 'rekapager-keyset-pagination'
-
local_path: 'rekapager-offset-pagination'
split_repository: 'rekapager-offset-pagination'
steps:
- uses: actions/checkout@v2
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/monorepo-split-github-action@v2.3.0"
with:
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.local_path }}'
# ↓ into https://github.com/symplify/easy-coding-standard repository
repository_organization: 'rekalogika'
repository_name: '${{ matrix.package.split_repository }}'
# [optional, with "github.com" as default]
repository_host: github.com
# ↓ the user signed under the split commit
user_name: "Priyadi Iman Nurcahyo"
user_email: "1102197+priyadi@users.noreply.github.com"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/monorepo-split-github-action@v2.3.0"
with:
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.local_path }}'
# ↓ into https://github.com/symplify/easy-coding-standard repository
repository_organization: 'rekalogika'
repository_name: '${{ matrix.package.split_repository }}'
# [optional, with "github.com" as default]
repository_host: github.com
# ↓ the user signed under the split commit
user_name: "Priyadi Iman Nurcahyo"
user_email: "1102197+priyadi@users.noreply.github.com"