From ecb8f2f1c266fb6bc5e3d99a6af1569b71d43398 Mon Sep 17 00:00:00 2001 From: mlch911 Date: Mon, 2 May 2022 22:41:48 +0800 Subject: [PATCH] Update Fastfile --- ios/fastlane/Fastfile | 9 +++++++++ ios/fastlane/metadata/zh-Hans/release_notes.txt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 1b9632f..88a3ffe 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -122,4 +122,13 @@ platform :ios do end lane_context[:BUILD_STRING] end + + private_lane :revert_bump_build do + last_commit = `git --no-pager log --pretty=format:%H -1` + last_commit_message = `git --no-pager log --pretty=format:%s -1 last_commit` + if last_commit_message == 'Increase Build Number' + `git tag -d #{tag_string}` + `git reset --soft #{last_commit}^` + end + end end diff --git a/ios/fastlane/metadata/zh-Hans/release_notes.txt b/ios/fastlane/metadata/zh-Hans/release_notes.txt index 8b13789..6ce58e2 100644 --- a/ios/fastlane/metadata/zh-Hans/release_notes.txt +++ b/ios/fastlane/metadata/zh-Hans/release_notes.txt @@ -1 +1 @@ - +提升用户体验,修复已知问题。