-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.42 KB
/
split.yaml
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
name: 'Packages Split'
on:
push:
branches:
- main
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
name: ${{ matrix.package.local_path }}
strategy:
fail-fast: false
matrix:
package:
- local_path: 'AsyncEventsAWS'
split_repository: 'mageos-async-events-aws'
# - local_path: 'AsyncEventsAzure'
# split_repository: 'mageos-async-events-azure'
- local_path: 'AsyncEventsGCP'
split_repository: 'mageos-async-events-gcp'
steps:
- uses: actions/checkout@v4
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
package_directory: 'MageOS/${{ matrix.package.local_path }}'
repository_organization: 'mage-os'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "mage-os-ci"
user_email: "[email protected]"
- if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'MageOS/${{ matrix.package.local_path }}'
repository_organization: 'mage-os'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "mage-os-ci"
user_email: "[email protected]"