From 04cddf10433b5b4fcd11738768c4b4bda8f52531 Mon Sep 17 00:00:00 2001 From: Laesse Date: Mon, 15 Aug 2022 22:27:39 +0200 Subject: [PATCH] use json method --- .github/workflows/test.yml | 4 ++-- gen-service-version.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b874853..cd041f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,10 +25,10 @@ jobs: build-services: needs: [install-build] runs-on: ubuntu-latest - if: ${{ needs.install-build.outputs.job-strategy-matrix != '[]' }} + if: ${{ needs.install-build.outputs.job-strategy-matrix != '[""]' }} strategy: matrix: - service: ${{ needs.install-build.outputs.job-strategy-matrix }} + service: ${{ fromJson(needs.install-build.outputs.job-strategy-matrix) }} steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/gen-service-version.js b/gen-service-version.js index 5bbd457..ef781ba 100644 --- a/gen-service-version.js +++ b/gen-service-version.js @@ -27,4 +27,4 @@ Object.entries(serviceVersions).forEach(([name, version]) => { } }); -console.log(`::set-output name=job-strategy-matrix::[${job_strategy_matrix.join(', ')}]`); +console.log(`::set-output name=job-strategy-matrix::["${job_strategy_matrix.join('", "')}"]`);