From 81cb6ad4fdacebc99f42a91e004b81b1323c1fb1 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Tue, 26 Oct 2021 19:12:05 +0200 Subject: [PATCH] Don't generate fastlane file if changelog entry is empty --- .scripts/changelog_to_fastlane.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.scripts/changelog_to_fastlane.py b/.scripts/changelog_to_fastlane.py index 520f1e679..2c97e300a 100644 --- a/.scripts/changelog_to_fastlane.py +++ b/.scripts/changelog_to_fastlane.py @@ -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())