Bump without altering CHANGELOG

This commit is contained in:
Davide De Rosa 2024-09-30 18:11:00 +02:00
parent cf3fe7449e
commit e4268fed24
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 19 additions and 10 deletions

5
ci/bump-no-log.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -z $1 ]; then
BUILD="build:$1"
fi
bundle exec fastlane bump $BUILD only:true

View File

@ -23,22 +23,26 @@ desc "Bump version"
lane :bump do |options|
version = options[:version]
build = options[:build]
to_commit = []
increment_build_number(build_number: build)
unless version.nil? || version.empty?
increment_version_number_in_xcodeproj(version_number: version)
end
log = changelog_from_git_commits(
pretty: "* %h %s",
date_format: "short"
)
path = "../#{logname}"
File.open(path, "w") { |file|
file.write(log)
}
system("vim", path)
unless options[:only]
log = changelog_from_git_commits(
pretty: "* %h %s",
date_format: "short"
)
path = "../#{logname}"
File.open(path, "w") { |file|
file.write(log)
}
system("vim", path)
to_commit.append(logname)
end
commit_version_bump(
message: "Bump version",
include: [logname]
include: to_commit
)
add_git_tag(
includes_lane: false,