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