Browse Source

Update Version Bump action (#57)

pull/58/head
Vince Grassia 3 years ago committed by GitHub
parent
commit
6a42772f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      version-bump/main.py

3
version-bump/main.py

@ -64,7 +64,8 @@ def update_xml(version, file_path):
mytree.write(file_path) mytree.write(file_path)
# MSBuild Props # MSBuild Props
else: else:
myroot[0][1].text = version version_property = [x for x in myroot[0] if x.tag == "Version"][-1]
version_property.text = version
mytree.write(file_path, encoding="utf-8") mytree.write(file_path, encoding="utf-8")

Loading…
Cancel
Save