Skip to content

Commit

Permalink
Make it all work again. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed May 17, 2016
1 parent 451b3fe commit 71f1b23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ lane :release do |options|
raise "Invalid release type: #{bumpType}".red
end

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

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

if options[:skip_tests] != true
Expand Down

0 comments on commit 71f1b23

Please sign in to comment.