From 366464d31b033b828d2778439d0b5fce15a2445f Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 22 Sep 2023 16:41:20 -0500 Subject: [PATCH] chore: json job --- .github/workflows/test.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b23f7ba..4e3948ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,6 +49,20 @@ jobs: echo "$JIT" echo "jit='$JIT'" >> "$GITHUB_OUTPUT" + get-jit-plugins-json: + runs-on: ubuntu-latest + needs: get-jit-plugins + outputs: + jitJson: ${{ steps.jitJson.outputs.jitJson }} + steps: + - name: Get JIT plugins JSON + id: jitJson + run: | + JSON='${{ toJSON(steps.plugins.outputs.jit) }}' + echo "JIT JSON:" + echo "$JSON" + echo "jitJson=$JSON" >> "$GITHUB_OUTPUT" + echo-jit-plugins: needs: get-jit-plugins runs-on: ubuntu-latest @@ -65,11 +79,11 @@ jobs: echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit) }} jit-install: - needs: [manifest, get-jit-plugins] + needs: [manifest, get-jit-plugins-json] strategy: matrix: os: [ubuntu-latest, windows-latest] - jitPlugins: ${{ needs.get-jit-plugins.outputs.jit }} + jitPlugins: ${{ fromJSON(needs.get-jit-plugins-json.outputs.jitJson) }} runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v3