-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (41 loc) · 1.33 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
name: 'Packages Split'
on:
push:
branches:
- master
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- local_path: 'morajlab.fluent-app-ui-kit'
split_repository: 'fluent-app-ui-kit'
steps:
- uses: actions/checkout@v2
# no tag
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: 'symplify/monorepo-split-github-action@2.0'
with:
package-directory: 'libs/${{ matrix.package.local_path }}'
split-repository-organization: 'morteza-jamali'
split-repository-name: '${{ matrix.package.split_repository }}'
branch: 'master'
user-name: 'morteza-jamali'
user-email: 'mortezajamali4241@gmail.com'
# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
uses: 'symplify/monorepo-split-github-action@2.0'
with:
tag: ${GITHUB_REF#refs/tags/}
package-directory: 'libs/${{ matrix.package.local_path }}'
split-repository-organization: 'morteza-jamali'
split-repository-name: '${{ matrix.package.split_repository }}'
branch: 'master'
user-name: 'morteza-jamali'
user-email: 'mortezajamali4241@gmail.com'