Sort json files

This commit is contained in:
Alexandre
2025-07-15 16:27:39 +02:00
committed by GitHub
parent a40382d8f0
commit 992eec133c

View File

@@ -46,7 +46,7 @@ jobs:
FIX_HTML_PRETTIER: true
FIX_SHELL_SHFMT: true
FIX_YAML_PRETTIER: true
FIX_JSON: true
FIX_JSON: false
#FIX_JSON_PRETTIER: true
FIX_MARKDOWN: true
#FIX_MARKDOWN_PRETTIER: true
@@ -58,6 +58,16 @@ jobs:
run: |
find . -type f \( -name "*.sh" -o -name "run" \) -exec chmod +x {} \;
- name: Sort json files
id: sort
run: |
for files in */*.json; do
echo "Sorting $files"
jq --sort-keys . "$files" > config2.json && cat config2.json > "$files" && rm config2.json
echo "changed=1" >> "$GITHUB_OUTPUT"
done
shell: bash
- name: Remove Super-Linter output (prevent checkout conflict)
run: sudo rm -rf super-linter-output/