Skip to content

Commit ce6de56

Browse files
fix patch sorting
1 parent c5607a0 commit ce6de56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/jsondiff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ 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.sort(key=lambda op: op["path"]), indent=args.indent))
35+
patch.patch.sort(key=lambda op: op["path"])
36+
print(json.dumps(patch.patch, indent=args.indent))
3637
sys.exit(1)
3738

3839
if __name__ == "__main__":

0 commit comments

Comments
 (0)