Skip to content

Commit

Permalink
chore: tojson frist
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Sep 22, 2023
1 parent 037a4f0 commit a160443
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,29 @@ 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
runs-on: ubuntu-latest
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
Expand Down

0 comments on commit a160443

Please sign in to comment.