diff --git a/.github/workflows/run-zombienet-tests.yml b/.github/workflows/run-zombienet-tests.yml index 31f6d6df9..963094432 100644 --- a/.github/workflows/run-zombienet-tests.yml +++ b/.github/workflows/run-zombienet-tests.yml @@ -70,8 +70,7 @@ jobs: - name: Set tests output id: set_tests run: | - tests_escaped=$(echo "${{ env.tests }}" | jq @json) - include_tests=$(echo "$tests_escaped" | jq -nc --argjson tests "$tests_escaped" '{include: $tests | map({test_name: .})}') + include_tests=$(echo "${{ env.tests }}" | jq -R -s '. | {include: (fromjson | map({test_name: .}))}') echo "Formatted tests JSON: $include_tests" echo "tests=$include_tests" >> $GITHUB_OUTPUT