-
-
Notifications
You must be signed in to change notification settings - Fork 994
57 lines (50 loc) · 1.68 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
name: Split Modules
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
split_modules:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- path: 'admin'
repository: 'ti-module-admin'
- path: 'main'
repository: 'ti-module-main'
- path: 'system'
repository: 'ti-module-system'
steps:
- uses: actions/checkout@v2
# no tag
- if: "!startsWith(github.ref, 'refs/tags/')"
# Uses an action in the root directory
name: Module Split of app/${{ matrix.package.path }}
uses: danharrin/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
branch: ${GITHUB_REF#refs/heads/}
package_directory: 'app/${{ matrix.package.path }}'
repository_organization: 'tastyigniter'
repository_name: '${{ matrix.package.repository }}'
user_name: "Sam Poyigi"
user_email: "[email protected]"
# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
# Uses an action in the root directory
name: Modules Tagged Split of ${{ matrix.package.path }}
uses: danharrin/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'app/${{ matrix.package.path }}'
repository_organization: 'tastyigniter'
repository_name: '${{ matrix.package.repository }}'
user_name: "Sam Poyigi"
user_email: "[email protected]"