Skip to content

Commit 1d05d7c

Browse files
committed
Merge branch 'develop' into v5
2 parents 5b0efd8 + 420f88f commit 1d05d7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fastlane/Fastfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,12 +818,15 @@ end
818818
lane :validate_public_interface do
819819
next unless is_check_required(sources: sources_matrix[:public_interface], force_check: @force_check)
820820

821-
# Run the analysis on the current branch
821+
# Get branch names
822822
original_branch = current_branch
823+
target_branch = ENV['GITHUB_BASE_REF'] || (original_branch.include?('release/') ? 'main' : 'develop')
824+
UI.important("Target branch: #{target_branch} 🕊️")
825+
826+
# Run the analysis on the current branch
823827
sh('interface-analyser analysis ../Sources/ public_interface_current.json')
824828

825829
# Checkout the target branch
826-
target_branch = original_branch.include?('release/') ? 'main' : 'develop'
827830
sh("git fetch origin #{target_branch}")
828831
sh("git checkout #{target_branch}")
829832

0 commit comments

Comments
 (0)