mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-02 23:02:37 +00:00
Bump without altering CHANGELOG
This commit is contained in:
parent
cf3fe7449e
commit
e4268fed24
5
ci/bump-no-log.sh
Executable file
5
ci/bump-no-log.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ ! -z $1 ]; then
|
||||||
|
BUILD="build:$1"
|
||||||
|
fi
|
||||||
|
bundle exec fastlane bump $BUILD only:true
|
@ -23,22 +23,26 @@ desc "Bump version"
|
|||||||
lane :bump do |options|
|
lane :bump do |options|
|
||||||
version = options[:version]
|
version = options[:version]
|
||||||
build = options[:build]
|
build = options[:build]
|
||||||
|
to_commit = []
|
||||||
increment_build_number(build_number: build)
|
increment_build_number(build_number: build)
|
||||||
unless version.nil? || version.empty?
|
unless version.nil? || version.empty?
|
||||||
increment_version_number_in_xcodeproj(version_number: version)
|
increment_version_number_in_xcodeproj(version_number: version)
|
||||||
end
|
end
|
||||||
log = changelog_from_git_commits(
|
unless options[:only]
|
||||||
pretty: "* %h %s",
|
log = changelog_from_git_commits(
|
||||||
date_format: "short"
|
pretty: "* %h %s",
|
||||||
)
|
date_format: "short"
|
||||||
path = "../#{logname}"
|
)
|
||||||
File.open(path, "w") { |file|
|
path = "../#{logname}"
|
||||||
file.write(log)
|
File.open(path, "w") { |file|
|
||||||
}
|
file.write(log)
|
||||||
system("vim", path)
|
}
|
||||||
|
system("vim", path)
|
||||||
|
to_commit.append(logname)
|
||||||
|
end
|
||||||
commit_version_bump(
|
commit_version_bump(
|
||||||
message: "Bump version",
|
message: "Bump version",
|
||||||
include: [logname]
|
include: to_commit
|
||||||
)
|
)
|
||||||
add_git_tag(
|
add_git_tag(
|
||||||
includes_lane: false,
|
includes_lane: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user