Skip to content

Commit

Permalink
fix(action): try to fix split-monorepo.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Aug 1, 2022
1 parent 52dbd30 commit e77ac76
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/split-monorepo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,9 @@ jobs:
outputs:
matrix: ${{ steps.output_data.outputs.matrix }}

split_monorepo:
needs: provide_packages_json

get_token:
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
# define package to repository map
package: ${{fromJson(needs.provide_packages_json.outputs.matrix)}}

steps:
- name: Get Token
id: get_workflow_token
Expand All @@ -66,9 +57,27 @@ jobs:
REPOSITORIES: |
*
DRY_RUN: true
GITHUB_TOKEN: ${{ GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
CONCURRENCY: 10

outputs:
token: ${{ steps.get_workflow_token.outputs.token }}

split_monorepo:
needs: |
provide_packages_json
get_token
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
# define package to repository map
package: ${{fromJson(needs.provide_packages_json.outputs.matrix)}}

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
Expand Down

0 comments on commit e77ac76

Please sign in to comment.