-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (51 loc) · 1.83 KB
/
split.yml
File metadata and controls
64 lines (51 loc) · 1.83 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: 'Split Composer Packages'
on:
push:
branches:
- main
- 1.0-branch
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'plugins/wme-sitebuilder'
split_repository: 'wme-sitebuilder'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/monorepo-split-github-action@2.2"
with:
# ↓ split "plugins/wme-sitebuilder" directory
package_directory: '${{ matrix.package.local_path }}'
# ↓ into https://github.com/moderntribe/wme-sitebuilder repository
repository_organization: 'moderntribe'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "Tr1b0t"
user_email: "Tr1b0t@users.noreply.github.com"
branch: '${{ github.ref_name }}'
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/monorepo-split-github-action@2.2"
with:
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "plugins/wme-sitebuilder" directory
package_directory: '${{ matrix.package.local_path }}'
# ↓ into https://github.com/moderntribe/wme-sitebuilder repository
repository_organization: 'moderntribe'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "Tr1b0t"
user_email: "Tr1b0t@users.noreply.github.com"