Skip to content

Commit 71f1b23

Browse files
committed
Make it all work again. :)
1 parent 451b3fe commit 71f1b23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ lane :release do |options|
3434
raise "Invalid release type: #{bumpType}".red
3535
end
3636

37+
newVersion = version_get_podspec()
3738
changelog = prompt(text: "Please provide release notes:".green, boolean: false, ci_input: "", multi_line_end_keyword: "FIN")
3839
af_insert_text_into_file(
3940
file_path: "Changelog.md",
@@ -48,7 +49,7 @@ lane :release do |options|
4849
filepath = '../R.swift/version.swift'
4950
newVersion = version_get_podspec()
5051

51-
content = File.read(filepath).sub(/let version = "(.*)"/, "let version = \"#{currentVersion}\"")
52+
content = File.read(filepath).sub(/let version = "(.*)"/, "let version = \"#{newVersion}\"")
5253
File.open(filepath, 'wb') { |file| file.write(content) }
5354

5455
if options[:skip_tests] != true

0 commit comments

Comments
 (0)