Skip to content

Commit

Permalink
ci: Revert update Fastlane file
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaIancu-Gini committed Nov 26, 2024
1 parent 84ee511 commit 13ea076
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -255,41 +255,24 @@ platform :ios do
up_to_date = []
to_be_released = []

# Create release tags for packages which have different versions than their latest release tag
# Create release tags for packages which have different versions than their latest release tag
packages.each do |package|
latest_version = get_latest_version_from_release_tags(package[:package_folder], UI)

if latest_version.nil?
UI.message("No release tags found for #{package[:package_folder]}, treating as a new package.")
# Treat the package as new and create a release tag
to_be_released.push package
git_create_release_tag(package[:package_folder], package[:version])

if UI.confirm("Push release tag?")
git_push_release_tag(package[:package_folder], package[:version])
end
elsif package[:version] == latest_version
if package[:version] == get_latest_version_from_release_tags(package[:package_folder], UI)
# The current package version is the same as the one in the latest release tag
UI.message("#{package[:package_folder]} is up to date with version #{package[:version]}.")
up_to_date.push package
elsif git_has_release_tag(package[:package_folder], package[:version])
# The current package version has already been released
UI.message("#{package[:package_folder]} version #{package[:version]} has already been released.")
up_to_date.push package
else
# The package version needs a new release tag
UI.message("#{package[:package_folder]} version #{package[:version]} will be tagged as a new release.")
to_be_released.push package
git_create_release_tag(package[:package_folder], package[:version])

if UI.confirm("Push release tag?")
git_push_release_tag(package[:package_folder], package[:version])
end
if UI.confirm("Push release tag?")
git_push_release_tag(package[:package_folder], package[:version])
end
end
end


if to_be_released.empty?
UI.success "All packages are up-to-date. No release tags needed."
else
Expand Down

0 comments on commit 13ea076

Please sign in to comment.