mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-18 21:58:52 -04:00
Convert Markdown to simple link for Fastlane
This commit is contained in:
@@ -19,9 +19,10 @@ with open('CHANGELOG.md') as changelog:
|
||||
if not match:
|
||||
raise ValueError(f"Invalid version line: {line}")
|
||||
version_code = match.group(1)
|
||||
else:
|
||||
text.append(line)
|
||||
elif line:
|
||||
# Turn Markdown [links](to_url) into links (to_url)
|
||||
text.append(re.sub(r'\[(.*?)\]\((.*?)\)', r'\1 (\2)', line))
|
||||
|
||||
for version, description in changelogs.items():
|
||||
with open(os.path.join("fastlane", "metadata", "android", "en-US", "changelogs", f"{version}.txt"), "w") as fastlane_file:
|
||||
fastlane_file.write("".join(description).strip())
|
||||
fastlane_file.write("".join(description).strip())
|
||||
|
||||
Reference in New Issue
Block a user