Add datasaker version update code

This commit is contained in:
minchulahn
2023-06-22 15:49:48 +09:00
parent fc9b6d8e48
commit 171fda2a27

15
update_dsk_version.py Normal file
View File

@@ -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)