Skip to content

Commit 6d9f2ff

Browse files
committed
asdf
1 parent 3511da2 commit 6d9f2ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/workspace-detector.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)