Skip to content

Commit a762832

Browse files
kiyotisclaude
andauthored
fix: remove JSON validation from sync.sh (#199)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa829c4 commit a762832

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

  • .github/workflows/sync-to-nabledge

.github/workflows/sync-to-nabledge/sync.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,7 @@ while IFS= read -r line || [ -n "$line" ]; do
126126
esac
127127
done < "$MANIFEST"
128128

129-
# JSON syntax check
130-
echo " Checking JSON syntax..."
131-
JSON_ERRORS=0
132-
while IFS= read -r json_file; do
133-
if ! jq empty "$json_file" 2>/dev/null; then
134-
echo " FAIL: invalid JSON: $json_file"
135-
JSON_ERRORS=$((JSON_ERRORS + 1))
136-
fi
137-
done < <(find "$DEST_DIR" -name '*.json' -type f)
138-
139-
TOTAL_ERRORS=$((ERRORS + JSON_ERRORS))
129+
TOTAL_ERRORS=$((ERRORS))
140130
if [ "$TOTAL_ERRORS" -ne 0 ]; then
141131
echo "Validation failed with $TOTAL_ERRORS error(s)"
142132
exit 1

0 commit comments

Comments
 (0)