From fdd8716d2f78cfdd0d185d9be66ebe6c0028b8a3 Mon Sep 17 00:00:00 2001 From: Davide Date: Thu, 7 Nov 2024 18:35:00 +0100 Subject: [PATCH] Add bump since git ref --- ci/bump-since.sh | 5 +++++ fastlane/Fastfile | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100755 ci/bump-since.sh diff --git a/ci/bump-since.sh b/ci/bump-since.sh new file mode 100755 index 00000000..a5709b2c --- /dev/null +++ b/ci/bump-since.sh @@ -0,0 +1,5 @@ +#!/bin/sh +if [ ! -z $1 ]; then + SINCE="since:$1" +fi +bundle exec fastlane bump $SINCE diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c309252b..647ccd36 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -23,7 +23,13 @@ logname = "CHANGELOG.txt" desc "Bump version" lane :bump do |options| unless options[:only] + if options[:since] + between = [options[:since], "HEAD"] + else + between = nil + end log = changelog_from_git_commits( + between: between, pretty: "* %s", date_format: "short" )