File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -201,15 +201,17 @@ platform :ios do
201201 computed_version = release_version_next
202202 new_version = version || computed_version
203203
204- # Warn if provided version differs from computed version
204+ # Fail if provided version differs from computed version
205205 if version && 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 } '.
210- WARNING
211- UI . important ( warning_message )
212- buildkite_annotate ( style : 'warning' , context : 'start-code-freeze-version-mismatch' , message : warning_message ) if is_ci
206+ error_message = <<~ERROR
207+ ❌ Version mismatch detected!
208+
209+ The explicitly-provided version from the release tool is '#{ version } ' but the computed version from the codebase is '#{ computed_version } '.
210+
211+ This mismatch must be resolved before proceeding with the code freeze. Please investigate and ensure the versions are aligned.
212+ ERROR
213+ buildkite_annotate ( style : 'error' , context : 'start-code-freeze-version-mismatch' , message : error_message ) if is_ci
214+ UI . user_error! ( error_message )
213215 end
214216
215217 UI . important <<-MESSAGE
You can’t perform that action at this time.
0 commit comments