You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use provided version from release tool, or fall back to calculated version
200
-
calculated_version=release_version_next
201
-
release_version=version || calculated_version
202
-
203
-
# Warn if provided version differs from calculated version
204
-
ifversion && version != calculated_version
205
-
warning_message="⚠️ Version mismatch: Release tool version is '#{version}' but calculated version is '#{calculated_version}'. Using '#{version}' from release tool."
200
+
# Use provided version from release tool, or fall back to computed version
201
+
computed_version=release_version_next
202
+
new_version=version || computed_version
203
+
204
+
# Warn if provided version differs from computed version
205
+
ifversion && version != computed_version
206
+
warning_message=<<~WARNING
207
+
⚠️ Version mismatch: The explicitly-provided version was '#{version}' while new computed version would have been '#{computed_version}'.
208
+
If this is unexpected, you might want to investigate the discrepency.
209
+
Continuing with the explicitly-provided verison '#{version}'.
• New release branch from #{DEFAULT_BRANCH}: release/#{release_version}
218
+
• New release branch from #{DEFAULT_BRANCH}: release/#{new_version}
214
219
• Current release version and build code: #{release_version_current} (#{build_code_current}).
215
-
• New release version and build code: #{release_version} (#{build_code_code_freeze}).
220
+
• New release version and build code: #{new_version} (#{build_code_code_freeze}).
216
221
217
222
MESSAGE
218
223
UI.user_error!("Terminating as requested. Don't forget to run the remainder of this automation manually.")unlessskip_confirm || UI.confirm('Do you want to continue?')
219
224
220
225
# Create the release branch
221
-
new_release_branch="release/#{release_version}"
226
+
new_release_branch="release/#{new_version}"
222
227
ensure_branch_does_not_exist!(new_release_branch)
223
228
224
229
UI.message('Creating release branch...')
@@ -234,8 +239,6 @@ platform :ios do
234
239
commit_version_bump
235
240
UI.success("Done! New Release Version: #{release_version_current}. New Build Code: #{build_code_current}")
0 commit comments