-
Notifications
You must be signed in to change notification settings - Fork 28
98 lines (84 loc) · 3.33 KB
/
monorepo-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
87
88
89
90
91
92
93
94
95
96
97
98
name: 'Packages Split'
on:
push:
branches:
- 1.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:
- local_path: 'src/core/etl'
split_repository: 'etl'
- local_path: 'src/lib/array-dot'
split_repository: 'array-dot'
- local_path: 'src/lib/doctrine-dbal-bulk'
split_repository: 'doctrine-dbal-bulk'
- local_path: 'src/lib/parquet'
split_repository: 'parquet'
- local_path: 'src/lib/dremel'
split_repository: 'dremel'
- local_path: 'src/lib/snappy'
split_repository: 'snappy'
- local_path: 'src/adapter/etl-adapter-amphp'
split_repository: 'etl-adapter-amphp'
- local_path: 'src/adapter/etl-adapter-avro'
split_repository: 'etl-adapter-avro'
- local_path: 'src/adapter/etl-adapter-chartjs'
split_repository: 'etl-adapter-chartjs'
- local_path: 'src/adapter/etl-adapter-csv'
split_repository: 'etl-adapter-csv'
- local_path: 'src/adapter/etl-adapter-doctrine'
split_repository: 'etl-adapter-doctrine'
- local_path: 'src/adapter/etl-adapter-elasticsearch'
split_repository: 'etl-adapter-elasticsearch'
- local_path: 'src/adapter/etl-adapter-meilisearch'
split_repository: 'etl-adapter-meilisearch'
- local_path: 'src/adapter/etl-adapter-google-sheet'
split_repository: 'etl-adapter-google-sheet'
- local_path: 'src/adapter/etl-adapter-http'
split_repository: 'etl-adapter-http'
- local_path: 'src/adapter/etl-adapter-json'
split_repository: 'etl-adapter-json'
- local_path: 'src/adapter/etl-adapter-logger'
split_repository: 'etl-adapter-logger'
- local_path: 'src/adapter/etl-adapter-parquet'
split_repository: 'etl-adapter-parquet'
- local_path: 'src/adapter/etl-adapter-reactphp'
split_repository: 'etl-adapter-reactphp'
- local_path: 'src/adapter/etl-adapter-text'
split_repository: 'etl-adapter-text'
- local_path: 'src/adapter/etl-adapter-xml'
split_repository: 'etl-adapter-xml'
steps:
- uses: actions/checkout@v2
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/monorepo-split-github-action@v2.3.0"
with:
package_directory: '${{ matrix.package.local_path }}'
branch: 1.x
repository_organization: 'flow-php'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "norberttech"
user_email: "norbert@orzechowicz.pl"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/monorepo-split-github-action@v2.3.0"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: '${{ matrix.package.local_path }}'
branch: 1.x
repository_organization: 'flow-php'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "norberttech"
user_email: "norbert@orzechowicz.pl"