Update build_updatexml.yml
This commit is contained in:
2
.github/workflows/build_updatexml.yml
vendored
2
.github/workflows/build_updatexml.yml
vendored
@@ -125,11 +125,9 @@ if not download_url:
|
|||||||
if not sha256:
|
if not sha256:
|
||||||
raise SystemExit("Missing SHA256")
|
raise SystemExit("Missing SHA256")
|
||||||
|
|
||||||
# Parse from file (handles XML declaration and avoids brittle string matching).
|
|
||||||
tree = ET.parse(template_path)
|
tree = ET.parse(template_path)
|
||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
|
|
||||||
# Locate elements by tag name, regardless of exact nesting.
|
|
||||||
downloadurl_el = root.find(".//downloadurl")
|
downloadurl_el = root.find(".//downloadurl")
|
||||||
sha256_el = root.find(".//sha256")
|
sha256_el = root.find(".//sha256")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user