-
-
Notifications
You must be signed in to change notification settings - Fork 161
52 lines (43 loc) · 1.18 KB
/
subsplit-packages.yml
File metadata and controls
52 lines (43 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
49
50
51
52
name: "Sub-split packages"
on:
push:
branches:
- "[0-9]+.x"
- "v[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+-beta.[0-9]+"
tags: ["v*"]
workflow_dispatch:
jobs:
get_packages:
name: Get packages
runs-on: ubuntu-latest
steps:
- name: Set Up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.5
coverage: none
- uses: actions/checkout@v4
- name: Get packages
id: get_json
run: echo "json=$(bin/get-packages)" >> $GITHUB_OUTPUT
- name: Output packages
run: echo "${{ steps.get_json.outputs.json }}"
outputs:
matrix: ${{ steps.get_json.outputs.json }}
packages_split:
name: Split package ${{ matrix.package.name }}
needs: get_packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.get_packages.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Set up git-filter-repo
run: pip install git-filter-repo
- name: Split Package
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: ./bin/split "${{ matrix.package.name }}"