From 992eec133c362cd1b5583bc3505db198662e7b64 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Jul 2025 16:27:39 +0200 Subject: [PATCH] Sort json files --- .github/workflows/weekly-supelinter.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weekly-supelinter.yaml b/.github/workflows/weekly-supelinter.yaml index a35105577..12be71f3f 100644 --- a/.github/workflows/weekly-supelinter.yaml +++ b/.github/workflows/weekly-supelinter.yaml @@ -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/