Skip to content

Commit

Permalink
More script fixes (#2419)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1203301625297703/1206468110851824/f

Description:

- set initial build number to -1 since we always increment it,
- set version only for hotfix branch, otherwise we get it from the user input
  • Loading branch information
jaceklyp authored Jan 30, 2024
1 parent 74980dc commit 3426f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ lane :latest_build_number_for_version do |options|
build_number = latest_testflight_build_number(
api_key: get_api_key,
version: options[:version],
initial_build_number: 0,
initial_build_number: -1,
username: get_username(options))
if options[:file_name]
File.write(options[:file_name], build_number)
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ create_build_branch() {
update_marketing_version() {
printf '%s' "Setting app version ... "

version=$(cut -d' ' -f3 < "${base_dir}/Configuration/Version.xcconfig")
if [[ $is_hotfix ]]; then
version=$(cut -d' ' -f3 < "${base_dir}/Configuration/Version.xcconfig")
version=$(bump_patch_number "$version")
fi

Expand Down

0 comments on commit 3426f4a

Please sign in to comment.