We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1091b8d commit 1a55ef3Copy full SHA for 1a55ef3
.github/workflows/publish.yml
@@ -121,6 +121,28 @@ jobs:
121
popd
122
mv artifact.tar main.tar
123
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
146
- name: Diff
147
id: diff
148
run: |
0 commit comments