-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 2.34 KB
/
Copy pathsplit.yml
File metadata and controls
50 lines (46 loc) · 2.34 KB
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
name: Split Monorepo
on:
workflow_dispatch:
jobs:
split:
name: Split ${{ matrix.package.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- { name: 'Api', local_path: 'packages/Api', split_repository: 'php-sdk-api' }
- { name: 'Bucketing', local_path: 'packages/Bucketing', split_repository: 'php-sdk-bucketing' }
- { name: 'Data', local_path: 'packages/Data', split_repository: 'php-sdk-data' }
- { name: 'Enums', local_path: 'packages/Enums', split_repository: 'php-sdk-enums' }
- { name: 'Event', local_path: 'packages/Event', split_repository: 'php-sdk-event' }
- { name: 'Experience', local_path: 'packages/Experience', split_repository: 'php-sdk-experience' }
- { name: 'Logger', local_path: 'packages/Logger', split_repository: 'php-sdk-logger' }
- { name: 'Php-sdk', local_path: 'packages/Php-sdk', split_repository: 'php-sdk' }
- { name: 'Rules', local_path: 'packages/Rules', split_repository: 'php-sdk-rules' }
- { name: 'Segments', local_path: 'packages/Segments', split_repository: 'php-sdk-segments' }
- { name: 'Types', local_path: 'packages/Types', split_repository: 'php-sdk-types' }
- { name: 'Utils', local_path: 'packages/Utils', split_repository: 'php-sdk-utils' }
env:
GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: danharrin/monorepo-split-github-action@f10477258c88013cc5902388ec47fe9457837041 # v2.4.4
with:
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'convertcom'
repository_name: ${{ matrix.package.split_repository }}
user_name: 'convert-ci-bot'
user_email: 'ci@convert.com'
- if: "startsWith(github.ref, 'refs/tags/')"
uses: danharrin/monorepo-split-github-action@f10477258c88013cc5902388ec47fe9457837041 # v2.4.4
with:
tag: ${{ github.ref_name }}
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'convertcom'
repository_name: ${{ matrix.package.split_repository }}
user_name: 'convert-ci-bot'
user_email: 'ci@convert.com'