Don't generate fastlane file if changelog entry is empty

This commit is contained in:
Sylvia van Os
2021-10-26 19:12:05 +02:00
parent 7afbe41f95
commit 81cb6ad4fd

View File

@@ -24,5 +24,8 @@ with open('CHANGELOG.md') as changelog:
text.append(re.sub(r'\[(.*?)\]\((.*?)\)', r'\1 (\2)', line))
for version, description in changelogs.items():
if not description:
continue
with open(os.path.join("fastlane", "metadata", "android", "en-US", "changelogs", f"{version}.txt"), "w") as fastlane_file:
fastlane_file.write("".join(description).strip())