Update sort_json.yaml

This commit is contained in:
Alexandre
2022-03-15 14:12:49 +01:00
committed by GitHub
parent d4955586bc
commit 69d1f67e46

View File

@@ -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