-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.79 KB
/
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
name: 'Packages Split'
on:
push:
branches:
- main
tags:
- '*'
env:
# 1. for GitHub split
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
path: 'module-tag'
repo: 'module-tag-test'
-
path: 'module-tax'
repo: 'module-tax'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "jonnitto/monorepo-split-github-action@5d896ffadc77de340b07e6b6ac10280ae0eefa77"
with:
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.path }}'
# ↓ into https://github.com/openmage-strict/<REPO> repository
repository_organization: 'openmage-strict'
repository_name: '${{ matrix.package.repo }}'
# ↓ the user signed under the split commit
user_name: "sreichel"
user_email: "github-sr@hotmail.com"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "jonnitto/monorepo-split-github-action@5d896ffadc77de340b07e6b6ac10280ae0eefa77"
with:
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.path }}'
# ↓ into https://github.com/openmage-strict/<REPO> repository
repository_organization: 'openmage-strict'
repository_name: '${{ matrix.package.repo }}'
# ↓ the user signed under the split commit
user_name: "sreichel"
user_email: "github-sr@hotmail.com"