From a24eb2a5cb5dd40fd31763ce334c4cb1ecc60a85 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 13 Feb 2022 14:56:57 +0100 Subject: [PATCH] Fix linting JSON files --- .github/workflows/callable-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/callable-qa.yml b/.github/workflows/callable-qa.yml index 39afe25b..74952ce2 100644 --- a/.github/workflows/callable-qa.yml +++ b/.github/workflows/callable-qa.yml @@ -154,7 +154,7 @@ jobs: name: JSON files are valid if: "always() && steps.checkout.outcome == 'success'" run: | - 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 *}') + 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 *}') if [[ "" != "$ERRORS" ]]; then echo -e "$ERRORS\n"; exit 1; fi