diff --git a/.github/workflows/ci-precompiled.yaml b/.github/workflows/ci-precompiled.yaml index 1847cba9..e94cf461 100644 --- a/.github/workflows/ci-precompiled.yaml +++ b/.github/workflows/ci-precompiled.yaml @@ -48,23 +48,23 @@ jobs: matrix_array: ${{ steps.collect_outputs.outputs.matrix_array }} steps: - - name: Initialize array file - run: echo "[]" > matrix_array.json + - name: Initialize array file + run: echo "[]" > matrix_array.json - - name: Append matrix version to array - run: | - # Read the existing array - current_array=$(cat matrix_array.json) - - # Append the current matrix version to the array - updated_array=$(echo $current_array | jq '. += ["${{ matrix.version }}"]') + - name: Append matrix version to array + run: | + # Read the existing array + current_array=$(cat matrix_array.json) - # Save the updated array back to the file - echo $updated_array > matrix_array.json + # Append the current matrix version to the array + updated_array=$(echo $current_array | jq '. += ["${{ matrix.version }}"]') + + # Save the updated array back to the file + echo $updated_array > matrix_array.json - - name: Set matrix_array output - id: collect_outputs - run: echo "matrix_array=$(cat matrix_array.json)" >> $GITHUB_OUTPUT + - name: Set matrix_array output + id: collect_outputs + run: echo "matrix_array=$(cat matrix_array.json)" >> $GITHUB_OUTPUT job2: needs: job1