-
Notifications
You must be signed in to change notification settings - Fork 683
44 lines (40 loc) · 1.22 KB
/
monorepo-split.yml
File metadata and controls
44 lines (40 loc) · 1.22 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
name: monorepo-split
on:
workflow_dispatch:
push:
branches:
- main
- 6.x
- feature/split-packages
tags: '*'
jobs:
split-monorepo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
# No tag
- name: Monorepo Split
if: "!startsWith(github.ref, 'refs/tags/')"
uses: danharrin/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
with:
package_directory: 'yii2-adapter'
repository_organization: 'craftcms'
repository_name: 'yii2-adapter'
branch: ${{ github.head_ref || github.ref_name }}
user_name: 'shinybrad'
user_email: 'shinybrad@pixelandtonic.com'
# With Tag
- name: Monorepo Split
if: "startsWith(github.ref, 'refs/tags/')"
uses: danharrin/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'yii2-adapter'
repository_organization: 'craftcms'
repository_name: 'yii2-adapter'
user_name: 'shinybrad'
user_email: 'shinybrad@pixelandtonic.com'