-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,22 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
# required for matrix of packages set | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
|
||
- uses: "ramsey/composer-install@v1" | ||
- uses: "ramsey/composer-install@v1" | ||
|
||
- name: Install Monorepo-Builder | ||
run: composer require symplify/monorepo-builder:^9.0 --update-no-dev | ||
run: composer require symplify/monorepo-builder:11.0.8 --update-no-dev | ||
|
||
# get package json list | ||
- | ||
id: output_data | ||
run: echo "::set-output name=matrix::$(vendor/bin/monorepo-builder packages-json)" | ||
- 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: | ||
|
@@ -44,19 +42,18 @@ jobs: | |
package: ${{fromJson(needs.provide_packages_json.outputs.matrix)}} | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- | ||
# Uses an action in the root directory | ||
name: Monorepo Split of ${{ matrix.package }} | ||
uses: symplify/monorepo-split-github-action@1.1 | ||
uses: symplify/monorepo-split-github-action@2.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
with: | ||
package-directory: 'packages/${{ matrix.package }}' | ||
split-repository-organization: 'thegreenter' | ||
split-repository-name: '${{ matrix.package }}' | ||
user-name: "giansalex" | ||
user-email: "[email protected]" | ||
package_directory: 'packages/${{ matrix.package }}' | ||
repository_organization: 'thegreenter' | ||
repository_name: '${{ matrix.package }}' | ||
user_name: "giansalex" | ||
user_email: "[email protected]" | ||
branch: "master" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
# get package json list | ||
- | ||
id: output_data | ||
run: echo "::set-output name=matrix::$(vendor/bin/monorepo-builder packages-json)" | ||
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: | ||
|
@@ -47,14 +47,14 @@ jobs: | |
- | ||
# Uses an action in the root directory | ||
name: Monorepo Split of ${{ matrix.package }} | ||
uses: symplify/monorepo-split-github-action@2.0 | ||
uses: symplify/monorepo-split-github-action@2.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
with: | ||
tag: ${GITHUB_REF#refs/tags/} | ||
package-directory: 'packages/${{ matrix.package }}' | ||
split-repository-organization: 'thegreenter' | ||
split-repository-name: '${{ matrix.package }}' | ||
user-name: "giansalex" | ||
user-email: "[email protected]" | ||
package_directory: 'packages/${{ matrix.package }}' | ||
repository_organization: 'thegreenter' | ||
repository_name: '${{ matrix.package }}' | ||
user_name: "giansalex" | ||
user_email: "[email protected]" | ||
branch: "master" |