Packages Split #219
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Packages Split' | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to checkout and split. Ignored if tag is specified. At least one required.' | |
| required: false | |
| type: string | |
| tag: | |
| description: 'Tag to checkout and split. Takes priority over branch. At least one required.' | |
| required: false | |
| type: string | |
| jobs: | |
| split_packages: | |
| name: Split ${{ matrix.package.repository }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - | |
| directory: src/AdminUi | |
| repository: AdminUi | |
| - | |
| directory: src/BootstrapAdminUi | |
| repository: BootstrapAdminUi | |
| - | |
| directory: src/TwigExtra | |
| repository: TwigExtra | |
| - | |
| directory: src/TwigHooks | |
| repository: TwigHooks | |
| - | |
| directory: src/UiTranslations | |
| repository: UiTranslations | |
| steps: | |
| - name: Split package | |
| uses: SyliusLabs/SplitPackageAction@v1.1 | |
| with: | |
| directory: ${{ matrix.package.directory }} | |
| repository: ${{ matrix.package.repository }} | |
| branch: ${{ github.event.inputs.branch }} | |
| tag: ${{ github.event.inputs.tag }} | |
| token: ${{ secrets.SPLIT_TOKEN }} |