diff --git a/update_dsk_version.py b/update_dsk_version.py new file mode 100644 index 0000000..7f3f5b7 --- /dev/null +++ b/update_dsk_version.py @@ -0,0 +1,15 @@ +import json, sys, traceback + +if len(sys.argv) != 2: + exit(traceback.print_exc()) + +releaseTag = sys.argv[1] +file_path = "./version.json" + +with open(file_path, 'r') as file: + data = json.load(file) + +data["datasaker"] = releaseTag + +with open(file_path, 'w') as file: + json.dump(data, file, indent=4)