File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,14 @@ jobs:
8787 echo "Changed workspaces: ${filtered_changed[*]}"
8888 # Output as space-separated string
8989 echo "changed_workspaces=${filtered_changed[*]}" >> "$GITHUB_OUTPUT"
90- # Output as JSON array
91- json_array=$(printf '%s\n' "${filtered_changed[@]}" | jq -R . | jq -s .)
90+ # Output as JSON array (compact format, no newlines)
91+ json_array=$(printf '%s\n' "${filtered_changed[@]}" | jq -R . | jq -s -c .)
9292 echo "changed_workspaces_json=$json_array" >> "$GITHUB_OUTPUT"
9393 echo "has_changes=true" >> "$GITHUB_OUTPUT"
9494 fi
9595
96- # Output all workspaces for reference
97- all_workspaces_json=$(echo "$all_workspaces" | grep -v '^$' | jq -R . | jq -s . || echo "[]")
96+ # Output all workspaces for reference (compact format, no newlines)
97+ all_workspaces_json=$(echo "$all_workspaces" | grep -v '^$' | jq -R . | jq -s -c . || echo "[]")
9898 echo "all_workspaces=$all_workspaces_json" >> "$GITHUB_OUTPUT"
9999
100100 - name : Display detection results
You can’t perform that action at this time.
0 commit comments