-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (59 loc) · 2 KB
/
Copy pathsubsplit.yml
File metadata and controls
64 lines (59 loc) · 2 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: 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: 'libs/parser'
split_repository: 'parser'
- local_path: 'libs/phpdoc'
split_repository: 'phpdoc'
- local_path: 'libs/printer'
split_repository: 'printer'
- local_path: 'libs/reader'
split_repository: 'reader'
- local_path: 'libs/types'
split_repository: 'types'
- local_path: 'docs'
split_repository: 'docs'
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: '${{ matrix.package.local_path }}'
repository_organization: 'php-type-language'
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: '${{ matrix.package.local_path }}'
repository_organization: 'php-type-language'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "SerafimArts"
user_email: "nesk@xakep.ru"