diff --git a/.github/workflows/providers.yaml b/.github/workflows/providers.yaml index bb9b8d790b..15dfadd11c 100644 --- a/.github/workflows/providers.yaml +++ b/.github/workflows/providers.yaml @@ -32,10 +32,12 @@ jobs: - name: Detect providers id: providers run: | - find providers -mindepth 1 -maxdepth 1 -type d -exec basename {} \; > providers.list - echo "providers=$(cat providers.list | tr '\n' ',')" >> $GITHUB_OUTPUT + providers=$(find providers -mindepth 1 -maxdepth 1 -type d -exec basename {} \;) + printf '%s\n' "${providers[@]}" | jq -R . | jq -sc . > providers.json + echo "providers=$(cat providers.json)" >> $GITHUB_OUTPUT + echo "Providers detected:" - cat providers.list + echo $providers provider-build: name: "${{ matrix.provider }}" @@ -45,7 +47,7 @@ jobs: strategy: max-parallel: 2 matrix: - provider: [ ${{ needs.scoping.outputs.providers }} ] + provider: ${{ fromJSON(needs.scoping.outputs.providers) }} steps: - name: Checkout uses: actions/checkout@v4