From a160443d24b985d944d5a4a82d270344b1af0245 Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 22 Sep 2023 15:20:11 -0500 Subject: [PATCH] chore: tojson frist --- .github/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3b3f4cf..8c94294d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,10 +40,11 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - JIT=$(jq -c '{ plugins: .oclif.jitPlugins | keys }' package.json) + JIT=$(jq -c '.oclif.jitPlugins | keys' package.json) + JIT_JSON='${{ toJson($JIT) }}' echo "Found JIT plugins:" - echo "$JIT" - echo "jit='$JIT'" >> "$GITHUB_OUTPUT" + echo "$JIT_JSON" + echo "jit=$JIT_JSON" >> "$GITHUB_OUTPUT" echo-jit-plugins: needs: get-jit-plugins @@ -51,15 +52,17 @@ jobs: steps: - uses: actions/checkout@v3 - run: | + echo "JIT JSON:" + echo ${{ needs.get-jit-plugins.outputs.jit }} echo "JIT from JSON:" - echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit).plugins }} + echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit) }} jit-install: needs: [manifest, get-jit-plugins] strategy: matrix: os: [ubuntu-latest, windows-latest] - jitPlugins: echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit).plugins }} + jitPlugins: echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit) }} runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v3