diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index ed6ff17..a508e7d 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -71,6 +71,8 @@ jobs: matrix+="\"include\":$(echo -n '${{ inputs.include }}')," matrix+="\"exclude\":$(echo -n '${{ inputs.exclude }}')" matrix+="}" + # Cleanup JSON (no unnecessary whitespaces, etc.) + matrix=$(jq -n -c "$matrix") echo $matrix echo "matrix=$matrix" >> $GITHUB_OUTPUT cmd: