From 6179c9507f9eac67bfb6787ff7d3147193b4c291 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Bertholon Date: Fri, 26 Apr 2024 23:08:32 +0200 Subject: [PATCH] Fix commit sha comparaison The sh command returns a breaking line --- fastlane/Fastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 5e59dfa59..02237ae88 100755 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -1986,7 +1986,7 @@ def github_deployment_ref_tag(lane) return new_tag if new_tag && !new_tag.empty? tag = last_git_tag(pattern: "#{platform(lane).downcase}/*") - tag_commit = sh("git rev-list -n 1 tags/#{tag}") + tag_commit = sh("git rev-list -n 1 tags/#{tag}").strip return unless tag_commit && !tag_commit.empty? return unless last_git_commit[:commit_hash] == tag_commit