From 69d1f67e4650d8696a344d7f956a2d210aac6637 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Mar 2022 14:12:49 +0100 Subject: [PATCH] Update sort_json.yaml --- .github/workflows/sort_json.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sort_json.yaml b/.github/workflows/sort_json.yaml index a65390307..044a5e426 100644 --- a/.github/workflows/sort_json.yaml +++ b/.github/workflows/sort_json.yaml @@ -14,6 +14,8 @@ jobs: - uses: actions/checkout@v2 - name: Run script file run: | - chmod +x .templates/sortjson.sh - .templates/sortjson.sh + for files in */*.json; do + echo "Sorting $files" + jq --sort-keys . "$files" > config2.json && cat config2.json > "$files" && rm config2.json + done shell: bash