Skip to content

Commit 66ba8fc

Browse files
committed
Merge branch 'fix-json-key-ordering-diffs'
2 parents b531856 + 1a55ef3 commit 66ba8fc

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,28 @@ jobs:
121121
popd
122122
mv artifact.tar main.tar
123123
124+
- name: Normalise JSON
125+
shell: python
126+
run: |
127+
import json
128+
from pathlib import Path
129+
130+
ROOTS = [
131+
Path('main'),
132+
Path('local'),
133+
]
134+
FILES = [
135+
'redirects.json',
136+
]
137+
138+
for root in ROOTS:
139+
for name in FILES:
140+
p = root / name
141+
p.write_text(json.dumps(
142+
json.loads(p.read_text()),
143+
sort_keys=True,
144+
))
145+
124146
- name: Diff
125147
id: diff
126148
run: |

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,16 @@ user_tracking: true
5656

5757
exclude:
5858
- README.md
59+
- cspell.json
5960
- Rakefile
6061
- Gemfile
6162
- Gemfile.lock
6263
- gems/
6364
- Dockerfile
6465
- docker-compose.yml
6566
- node_modules/
67+
- package-lock.json
68+
- package.json
6669
- _env/
6770
- _docs/
6871
- vendor/

0 commit comments

Comments
 (0)