Skip to content

Commit 9d27c99

Browse files
committed
Change where we set the version variable in update_appstore_strings
1 parent 08b6070 commit 9d27c99

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fastlane/lanes/localization.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@
9898
lane :update_appstore_strings do |options|
9999
# If no `app:` is specified, call this for both WordPress and Jetpack
100100
apps = options[:app].nil? ? %i[wordpress jetpack] : Array(options[:app]&.downcase&.to_sym)
101+
version = options.fetch(:version, android_get_app_version)
101102

102103
apps.each do |app|
103104
app_values = APP_SPECIFIC_VALUES[app]
104105

105106
metadata_folder = File.join(PROJECT_ROOT_FOLDER, 'WordPress', app_values[:metadata_dir])
106-
version = options.fetch(:version, android_get_app_version)
107107

108108
# <key in po file> => <path to txt file to read the content from>
109109
files = {
@@ -178,7 +178,7 @@
178178

179179
skip_commit = options.fetch(:skip_commit, false)
180180
skip_git_push = options.fetch(:skip_git_push, false)
181-
181+
182182
# If no `app:` is specified, call this for both WordPress and Jetpack
183183
apps = options[:app].nil? ? %i[wordpress jetpack] : Array(options[:app]&.to_s&.downcase&.to_sym)
184184

@@ -218,7 +218,7 @@
218218
source_file = key.to_s.start_with?('release_note_') ? 'release_notes.txt' : h[:desc]
219219
FileUtils.cp(File.join(metadata_source_dir, source_file), File.join(download_path, 'en-US', h[:desc]))
220220
end
221-
221+
222222
unless skip_commit
223223
git_add(path: download_path)
224224
message = "Update #{app_values[:display_name]} metadata translations"

0 commit comments

Comments
 (0)