Skip to content

Commit

Permalink
Escape JSON?
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Jul 30, 2024
1 parent c0f4807 commit abfa8fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/run-zombienet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
- name: Set tests output
id: set_tests
run: |
include_tests=$(echo "${{ env.tests }}" | jq -c '{include: . | map({test_name: .})}')
tests_escaped=$(echo "${{ env.tests }}" | jq @json)
include_tests=$(echo "$tests_escaped" | jq -nc --argjson tests "$tests_escaped" '{include: $tests | map({test_name: .})}')
echo "Formatted tests JSON: $include_tests"
echo "tests=$include_tests" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit abfa8fb

Please sign in to comment.