Fix updates.xml SHAs and release workflow regex [skip ci]

This commit is contained in:
Jonathan Miller
2026-04-18 17:52:01 -05:00
parent 4f3ff6a354
commit 8f6c5715f4

View File

@@ -314,9 +314,9 @@ jobs:
with open("updates.xml", "r") as f:
content = f.read()
# Build regex to find the <update> block containing this stability tag
# Match from <update> to </update> that contains <tag>xml_tag</tag>
block_pattern = r"(<update>.*?<tag>" + re.escape(xml_tag) + r"</tag>.*?</update>)"
# Build regex to find the specific <update> block for this stability tag
# Use negative lookahead to avoid matching across multiple <update> blocks
block_pattern = r"(<update>(?:(?!</update>).)*?<tag>" + re.escape(xml_tag) + r"</tag>.*?</update>)"
match = re.search(block_pattern, content, re.DOTALL)
if not match: