-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (66 loc) · 2.48 KB
/
split.yml
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
65
66
name: 'split'
on:
push:
branches:
- main
tags:
- '*'
jobs:
packages_split:
runs-on: ubuntu-latest
environment: 'actions'
env:
GITHUB_TOKEN: ${{ secrets.SPLIT_ACCESS_TOKEN }}
strategy:
fail-fast: false
matrix:
packages:
- local_path: 'firestore-http-basic-authenticator'
split_repository: 'lti.firestore-http-basic-authenticator'
- local_path: 'slim-lti-gae-shim'
split_repository: 'lti.slim-lti-gae-shim'
- local_path: 'slim-lti-shim'
split_repository: 'lti.slim-lti-shim'
templates:
- local_path: 'slim-lti-skeleton'
split_repository: 'lti.slim-lti-skeleton'
steps:
- uses: actions/checkout@v2
# no tag (packages)
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: 'danharrin/monorepo-split-github-action@v2.3.0'
with:
package_directory: 'packages/${{ matrix.packages.local_path }}'
repository_organization: 'groton-school'
repository_name: '${{ matrix.packages.split_repository }}'
user_name: 'battis'
user_email: 'sbattis@groton.org'
# with tag (packages)
- if: "startsWith(github.ref, 'refs/tags/')"
uses: 'danharrin/monorepo-split-github-action@v2.3.0'
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'packages/${{ matrix.packages.local_path }}'
repository_organization: 'groton-school'
repository_name: '${{ matrix.packages.split_repository }}'
user_name: 'battis'
user_email: 'sbattis@groton.org'
# no tag (templates)
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: 'danharrin/monorepo-split-github-action@v2.3.0'
with:
package_directory: 'templates/${{ matrix.templates.local_path }}'
repository_organization: 'groton-school'
repository_name: '${{ matrix.templates.split_repository }}'
user_name: 'battis'
user_email: 'sbattis@groton.org'
# with tag (templates)
- if: "startsWith(github.ref, 'refs/tags/')"
uses: 'danharrin/monorepo-split-github-action@v2.3.0'
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'templates/${{ matrix.templates.local_path }}'
repository_organization: 'groton-school'
repository_name: '${{ matrix.templates.split_repository }}'
user_name: 'battis'
user_email: 'sbattis@groton.org'