Add datasaker version update code
This commit is contained in:
15
update_dsk_version.py
Normal file
15
update_dsk_version.py
Normal 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)
|
||||
Reference in New Issue
Block a user