-
Notifications
You must be signed in to change notification settings - Fork 28
103 lines (88 loc) · 3.48 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
99
100
101
102
103
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/parquet-viewer'
split_repository: 'parquet-viewer'
- local_path: 'src/lib/dremel'
split_repository: 'dremel'
- local_path: 'src/lib/rdsl'
split_repository: 'rdsl'
- local_path: 'src/lib/snappy'
split_repository: 'snappy'
- 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-filesystem'
split_repository: 'etl-adapter-filesystem'
- 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-text'
split_repository: 'etl-adapter-text'
- local_path: 'src/adapter/etl-adapter-xml'
split_repository: 'etl-adapter-xml'
- local_path: 'src/tools/homebrew'
split_repository: 'homebrew-flow'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/[email protected]"
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: "[email protected]"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/[email protected]"
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: "[email protected]"