Skip to content

Commit 1c9324b

Browse files
committed
fix: compact JSON output for GitHub Actions compatibility
Use jq -c to compact JSON array to single line for GITHUB_OUTPUT. Multi-line values cause "Invalid format" errors in GitHub Actions.
1 parent 8808131 commit 1c9324b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/scan-updates.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
6262
if [ "$(echo "$updates" | jq 'length')" -gt 0 ]; then
6363
echo "has_updates=true" >> $GITHUB_OUTPUT
64-
echo "updates=$updates" >> $GITHUB_OUTPUT
64+
# Compact JSON to single line for GitHub Actions output
65+
echo "updates=$(echo "$updates" | jq -c '.')" >> $GITHUB_OUTPUT
6566
6667
echo ""
6768
echo "📦 Updates detected:"

0 commit comments

Comments
 (0)