Towncrier fixes (#97)

This commit is contained in:
ismailgulek
2022-06-27 20:41:00 +03:00
committed by GitHub
parent 36c34503fc
commit cc14f1f567
5 changed files with 7 additions and 32 deletions
+1 -6
View File
@@ -101,13 +101,8 @@ end
private_lane :export_version_changes do |options|
Dir.chdir("..") do
sh("sed -i '.tmp' 's/CHANGES.md/version_changes.md/g' towncrier.toml")
Changelog.update_topmost_section(version: options[:version], additional_entries: {})
changelog = Changelog.extract_first_section
# Pushing them directly into the $GITHUB_ENV results in errors
# https://trstringer.com/github-actions-multiline-strings/
# String substitution and here documents failed too
sh("echo '#{changelog}' >> version_changes.md")
end
end