diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b0d51d..381a8d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -314,9 +314,9 @@ jobs: with open("updates.xml", "r") as f: content = f.read() - # Build regex to find the block containing this stability tag - # Match from to that contains xml_tag - block_pattern = r"(.*?" + re.escape(xml_tag) + r".*?)" + # Build regex to find the specific block for this stability tag + # Use negative lookahead to avoid matching across multiple blocks + block_pattern = r"((?:(?!).)*?" + re.escape(xml_tag) + r".*?)" match = re.search(block_pattern, content, re.DOTALL) if not match: