Skip to content

Commit 21179c9

Browse files
chore: remove check of the branch name and its cleaniness for Bitrise (#687)
1 parent 81aeec6 commit 21179c9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

fastlane/Fastfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ lane :deploy do |options|
4949
podspec_path = "AlgoliaSearchClient.podspec"
5050
base_branch = options[:branch] || "master"
5151

52-
ensure_git_branch(
53-
branch: base_branch
54-
)
55-
ensure_git_status_clean
52+
# ensure branch and cleaniness locally but not on Bitrise.
53+
if !ENV['BITRISE_BUILD_NUMBER']
54+
ensure_git_branch(
55+
branch: base_branch
56+
)
57+
ensure_git_status_clean
58+
end
5659

5760
release_type = options[:type]
5861

0 commit comments

Comments
 (0)