Merge branch '5.3' into 5.3 #3
This file contains 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: Split | |
on: | |
push: | |
branches: | |
- 5.3 | |
tags: | |
- 5.3.* | |
permissions: read-all | |
jobs: | |
monorepo-split: | |
name: Monorepo split | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
extensions: json, zlib | |
coverage: none | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache the monorepo split | |
uses: actions/cache@v3 | |
with: | |
path: .monorepo-split-cache | |
key: dev-${GITHUB_REF##*/} | |
- name: Install the dependencies | |
run: composer global require contao/monorepo-tools:dev-main | |
- name: Split the monorepo | |
run: $HOME/.composer/vendor/bin/monorepo-tools split ${GITHUB_REF##*/} ${{ github.event.forced && '--force-push' || '' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.MONOREPO_SPLIT_TOKEN }} |