diff --git a/.github/workflows/conda-cpp-build.yaml b/.github/workflows/conda-cpp-build.yaml index b267e200..e3670954 100644 --- a/.github/workflows/conda-cpp-build.yaml +++ b/.github/workflows/conda-cpp-build.yaml @@ -49,6 +49,8 @@ jobs: steps: - name: Compute Build Matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -67,7 +69,7 @@ jobs: MATRIX="$( yq -n -o json 'env(MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" diff --git a/.github/workflows/conda-cpp-tests.yaml b/.github/workflows/conda-cpp-tests.yaml index 94178d91..2ef7d4b8 100644 --- a/.github/workflows/conda-cpp-tests.yaml +++ b/.github/workflows/conda-cpp-tests.yaml @@ -58,6 +58,8 @@ jobs: fi - name: Compute C++ Test Matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -96,7 +98,7 @@ jobs: MATRIX="$( yq -n -o json 'env(TEST_MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" diff --git a/.github/workflows/conda-python-build.yaml b/.github/workflows/conda-python-build.yaml index cf33ddbd..46dd4308 100644 --- a/.github/workflows/conda-python-build.yaml +++ b/.github/workflows/conda-python-build.yaml @@ -49,6 +49,8 @@ jobs: steps: - name: Compute Build Matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -75,7 +77,7 @@ jobs: MATRIX="$( yq -n -o json 'env(MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" diff --git a/.github/workflows/conda-python-tests.yaml b/.github/workflows/conda-python-tests.yaml index 7bb0fb03..b8b49887 100644 --- a/.github/workflows/conda-python-tests.yaml +++ b/.github/workflows/conda-python-tests.yaml @@ -61,6 +61,8 @@ jobs: fi - name: Compute Python Test Matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -99,7 +101,7 @@ jobs: MATRIX="$( yq -n -o json 'env(TEST_MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" diff --git a/.github/workflows/wheels-build.yaml b/.github/workflows/wheels-build.yaml index 736476af..f730e0bc 100644 --- a/.github/workflows/wheels-build.yaml +++ b/.github/workflows/wheels-build.yaml @@ -82,6 +82,8 @@ jobs: steps: - name: Compute Build Matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -108,7 +110,7 @@ jobs: MATRIX="$( yq -n -o json 'env(MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" diff --git a/.github/workflows/wheels-test.yaml b/.github/workflows/wheels-test.yaml index 239d6999..775df400 100644 --- a/.github/workflows/wheels-test.yaml +++ b/.github/workflows/wheels-test.yaml @@ -70,6 +70,8 @@ jobs: fi - name: Compute test matrix id: compute-matrix + env: + MATRIX_FILTER: ${{ inputs.matrix_filter }} run: | set -eo pipefail @@ -106,7 +108,7 @@ jobs: MATRIX="$( yq -n -o json 'env(TEST_MATRIX)' | \ - jq -c '${{ inputs.matrix_filter }} | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end' + jq -c "${MATRIX_FILTER} | if (. | length) > 0 then {include: .} else \"Error: Empty matrix\n\" | halt_error(1) end" )" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}"