Skip to content

Commit

Permalink
[Tooling] Improve the "internal pods not on stable version" annotation (
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware authored Apr 15, 2024
2 parents 0d18629 + b040332 commit 3a7ac85
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fastlane/lanes/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,7 @@ def create_release_management_pull_request(release_version:, base_branch:, title
def check_pods_references
result = ios_check_beta_deps(lockfile: File.join(PROJECT_ROOT_FOLDER, 'Podfile.lock'))

# Will fail if :pods doesn't exist in the result.
# Seems fair, given the shape of the result Hash should not change unless via a major version bump.
style = result[:pods].empty? ? 'success' : 'warning'
buildkite_annotate(context: 'pods-check', style:, message: result[:message]) if is_ci
style = result[:pods].nil? || result[:pods].empty? ? 'success' : 'warning'
message = "### Checking Internal Dependencies are all on a **stable** version\n\n#{result[:message]}"
buildkite_annotate(context: 'pods-check', style:, message:) if is_ci
end

0 comments on commit 3a7ac85

Please sign in to comment.