-
Notifications
You must be signed in to change notification settings - Fork 0
129 lines (100 loc) · 4.03 KB
/
split-repo.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: 'Packages Split'
on:
push:
branches:
- 2.x
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:
# orkestra-collection
- local_path: orkestra-collections
split_repository: orkestra-collections
# orkestra-event-sourcing
- local_path: orkestra-event-sourcing
split_repository: orkestra-event-sourcing
#orkestra-framework
- local_path: orkestra-framework
split_repository: orkestra-framework
#orkestra-normalization
- local_path: orkestra-normalization
split_repository: orkestra-normalization
#orkestra-postgresql-personal-information-store
- local_path: orkestra-postgresql-personal-information-store
split_repository: orkestra-postgresql-personal-information-store
#orkestra-retry
- local_path: orkestra-retry
split_repository: orkestra-retry
#orkestra-datetime
- local_path: orkestra-datetime
split_repository: orkestra-datetime
#orkestra-event-sourcing-testing
- local_path: orkestra-event-sourcing-testing
split_repository: orkestra-event-sourcing-testing
#orkestra-messaging
- local_path: orkestra-messaging
split_repository: orkestra-messaging
#orkestra-postgresql-document-store
- local_path: orkestra-postgresql-document-store
split_repository: orkestra-postgresql-document-store
#orkestra-postgresql-timeout-storage
- local_path: orkestra-postgresql-timeout-storage
split_repository: orkestra-postgresql-timeout-storage
#orkestra-symfony-bundle
- local_path: orkestra-symfony-bundle
split_repository: orkestra-symfony-bundle
#orkestra-enum
- local_path: orkestra-enum
split_repository: orkestra-enum
#orkestra-exceptions
- local_path: orkestra-exceptions
split_repository: orkestra-exceptions
#orkestra-modeling
- local_path: orkestra-modeling
split_repository: orkestra-modeling
#orkestra-postgresql-eventstore
- local_path: orkestra-postgresql-eventstore
split_repository: orkestra-postgresql-eventstore
#orkestra-privacy
- local_path: orkestra-privacy
split_repository: orkestra-privacy
#orkestra-worker
- local_path: orkestra-worker
split_repository: orkestra-worker
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: 'components/${{ matrix.package.local_path }}'
# ↓ into https://github.com/symplify/easy-coding-standard repository
repository_organization: 'Morebec'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "Morebot"
user_email: "info@morebec.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: 'components/${{ matrix.package.local_path }}'
# ↓ into https://github.com/symplify/easy-coding-standard repository
repository_organization: 'Morebec'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "Morebot"
user_email: "info@morebec.com"