-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 2.41 KB
/
split_modules.yaml
File metadata and controls
57 lines (52 loc) · 2.41 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
name: Split Modules
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- { local_path: 'src/Aegis', split_repository: 'phalanx-aegis' }
- { local_path: 'src/Archon', split_repository: 'phalanx-archon' }
- { local_path: 'src/Argos', split_repository: 'phalanx-argos' }
- { local_path: 'src/Athena', split_repository: 'phalanx-athena' }
- { local_path: 'src/Cli', split_repository: 'phalanx-cli' }
- { local_path: 'src/Enigma', split_repository: 'phalanx-enigma' }
- { local_path: 'src/Grammata', split_repository: 'phalanx-grammata' }
- { local_path: 'src/Hermes', split_repository: 'phalanx-hermes' }
- { local_path: 'src/Hydra', split_repository: 'phalanx-hydra' }
- { local_path: 'src/Iris', split_repository: 'phalanx-iris' }
- { local_path: 'src/PHPStan', split_repository: 'phalanx-phpstan' }
- { local_path: 'src/Panoply', split_repository: 'phalanx-panoply' }
- { local_path: 'src/Skopos', split_repository: 'phalanx-skopos' }
- { local_path: 'src/Stoa', split_repository: 'phalanx-stoa' }
- { local_path: 'src/Styx', split_repository: 'phalanx-styx' }
- { local_path: 'src/Surreal', split_repository: 'phalanx-surreal' }
- { local_path: 'src/Theatron', split_repository: 'phalanx-theatron' }
- { local_path: 'src/Themis', split_repository: 'phalanx-themis' }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure split repositories exist
env:
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: |
REPO_NAME=$(basename ${{ matrix.package.split_repository }})
gh repo create "phalanx-php/$REPO_NAME" --public --description "Read-only split of phalanx-php/phalanx" 2>/dev/null || true
- name: Split module
uses: driesvints/monorepo-split-github-action@v2
with:
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'phalanx-php'
repository_name: ${{ matrix.package.split_repository }}
user_name: "github-actions[bot]"
user_email: "41898282+github-actions[bot]@users.noreply.github.com"
branch: "main"
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}