Merge pull request #267 from dlopez525/fix/266-add-percent-summarydetail #23
Workflow file for this run
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: Sync Monorepo | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| provide_packages_json_tagged: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| # required for matrix of packages set | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.2 | |
| coverage: none | |
| - uses: "ramsey/composer-install@v1" | |
| - name: Install Monorepo-Builder | |
| run: composer require symplify/monorepo-builder:11.0.8 --update-no-dev | |
| # get package json list | |
| - | |
| id: output_data | |
| run: echo "matrix=$(vendor/bin/monorepo-builder packages-json)" >> $GITHUB_OUTPUT | |
| # this step is needed, so the output gets to the next defined job | |
| outputs: | |
| matrix: ${{ steps.output_data.outputs.matrix }} | |
| split_monorepo_tagged: | |
| needs: provide_packages_json_tagged | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: ${{fromJson(needs.provide_packages_json_tagged.outputs.matrix)}} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - | |
| # Uses an action in the root directory | |
| name: Monorepo Split of ${{ matrix.package }} | |
| uses: symplify/monorepo-split-github-action@v2.3.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| with: | |
| tag: ${GITHUB_REF#refs/tags/} | |
| package_directory: 'packages/${{ matrix.package }}' | |
| repository_organization: 'thegreenter' | |
| repository_name: '${{ matrix.package }}' | |
| user_name: "giansalex" | |
| user_email: "me@giansalex.dev" | |
| branch: "master" |