-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.64 KB
/
Copy pathsubsplit.yml
File metadata and controls
54 lines (49 loc) · 1.64 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
name: Subsplit Libraries
on:
push:
tags:
- '*'
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
subsplit:
name: Split Packages (${{ matrix.package.local_path }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
# - local_path: 'path/to/component'
# split_repository: 'repository-name'
steps:
- uses: actions/checkout@v7
# no tag
- if: "!startsWith(github.ref, 'refs/tags/')"
name: Monorepo Split of ${{ matrix.package.split_repository }}
uses: danharrin/monorepo-split-github-action@v2.4.5
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
branch: "master"
package_directory: 'libs/${{ matrix.package.local_path }}'
repository_organization: 'boson-php'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "SerafimArts"
user_email: "nesk@xakep.ru"
# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
name: Monorepo Tagged Split of ${{ matrix.package }}
uses: danharrin/monorepo-split-github-action@v2.4.5
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
branch: "master"
package_directory: 'libs/${{ matrix.package.local_path }}'
repository_organization: 'boson-php'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "SerafimArts"
user_email: "nesk@xakep.ru"