Skip to content

Commit

Permalink
Update monorepo actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Nov 22, 2022
1 parent b8a0ea5 commit 96558ee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/monorepo_split_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
14 changes: 7 additions & 7 deletions .github/workflows/monorepo_split_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"

0 comments on commit 96558ee

Please sign in to comment.