Skip to content

Commit c5607a0

Browse files
sort diff output for consistency
1 parent f5b13a9 commit c5607a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/jsondiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def diff_files():
3232
doc2 = json.load(args.FILE2)
3333
patch = jsonpatch.make_patch(doc1, doc2)
3434
if patch.patch:
35-
print(json.dumps(patch.patch, indent=args.indent))
35+
print(json.dumps(patch.patch.sort(key=lambda op: op["path"]), indent=args.indent))
3636
sys.exit(1)
3737

3838
if __name__ == "__main__":

0 commit comments

Comments
 (0)