-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.18 KB
/
split_packages.yml
File metadata and controls
48 lines (42 loc) · 1.18 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
name: Split Packages
on:
push:
branches: [ main ]
tags:
- "*"
create:
workflow_run:
workflows: ["Create Release"]
types:
- completed
jobs:
split_packages:
runs-on: ubuntu-latest
name: Split Packages
strategy:
fail-fast: false
matrix:
package:
- local_path: 'packages/core'
split_repository: 'core-php'
- local_path: 'packages/laravel'
split_repository: 'laravel'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: previous-tag
uses: 'WyriHaximus/github-action-get-previous-tag@master'
- name: Split ${{ matrix.package.split_repository }}
uses: danharrin/monorepo-split-github-action@v2.3.0
with:
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'craftile'
repository_name: ${{ matrix.package.split_repository }}
user_name: "GitHub Action"
user_email: "action@github.com"
branch: main
tag: ${{ steps.previous-tag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}