File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,28 @@ jobs:
121
121
popd
122
122
mv artifact.tar main.tar
123
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
+
124
146
- name : Diff
125
147
id : diff
126
148
run : |
Original file line number Diff line number Diff line change @@ -56,13 +56,16 @@ user_tracking: true
56
56
57
57
exclude :
58
58
- README.md
59
+ - cspell.json
59
60
- Rakefile
60
61
- Gemfile
61
62
- Gemfile.lock
62
63
- gems/
63
64
- Dockerfile
64
65
- docker-compose.yml
65
66
- node_modules/
67
+ - package-lock.json
68
+ - package.json
66
69
- _env/
67
70
- _docs/
68
71
- vendor/
You can’t perform that action at this time.
0 commit comments