Skip to content

Commit a24eb2a

Browse files
Fix linting JSON files
1 parent 8130145 commit a24eb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/callable-qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
name: JSON files are valid
155155
if: "always() && steps.checkout.outcome == 'success'"
156156
run: |
157-
ERRORS=$(find * -name '*.json' | parallel -j+3 -i{} -n1 bash -c 'ERR=$(python -mjson.tool {} 2>&1 1> /dev/null) || echo \\n::error file={},line=`echo "${ERR#*: line }" | cut -d" " -f 1`::${ERR%%: line *}')
157+
ERRORS=$(find * -name '*.json' | xargs -I{} -n1 -P0 bash -c 'ERR=$(cd / && python -mjson.tool '$(pwd)'/{} 2>&1 1> /dev/null) || echo \\n::error file={},line=`echo "${ERR#*: line }" | cut -d" " -f 1`::${ERR%%: line *}')
158158
159159
if [[ "" != "$ERRORS" ]]; then echo -e "$ERRORS\n"; exit 1; fi
160160

0 commit comments

Comments
 (0)