mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02: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
|
- uses: actions/checkout@v2
|
||||||
- name: Run script file
|
- name: Run script file
|
||||||
run: |
|
run: |
|
||||||
chmod +x .templates/sortjson.sh
|
for files in */*.json; do
|
||||||
.templates/sortjson.sh
|
echo "Sorting $files"
|
||||||
|
jq --sort-keys . "$files" > config2.json && cat config2.json > "$files" && rm config2.json
|
||||||
|
done
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user