Fix updates.xml SHAs and release workflow regex [skip ci]
This commit is contained in:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -314,9 +314,9 @@ jobs:
|
|||||||
with open("updates.xml", "r") as f:
|
with open("updates.xml", "r") as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
# Build regex to find the <update> block containing this stability tag
|
# Build regex to find the specific <update> block for this stability tag
|
||||||
# Match from <update> to </update> that contains <tag>xml_tag</tag>
|
# Use negative lookahead to avoid matching across multiple <update> blocks
|
||||||
block_pattern = r"(<update>.*?<tag>" + re.escape(xml_tag) + r"</tag>.*?</update>)"
|
block_pattern = r"(<update>(?:(?!</update>).)*?<tag>" + re.escape(xml_tag) + r"</tag>.*?</update>)"
|
||||||
match = re.search(block_pattern, content, re.DOTALL)
|
match = re.search(block_pattern, content, re.DOTALL)
|
||||||
|
|
||||||
if not match:
|
if not match:
|
||||||
|
|||||||
Reference in New Issue
Block a user