mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Update sort_json.yaml
This commit is contained in:
6
.github/workflows/sort_json.yaml
vendored
6
.github/workflows/sort_json.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user