Skip to content

Commit 758a856

Browse files
Merge branch 'develop' into ci/xcode26
2 parents 7798466 + 420f88f commit 758a856

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
@@ -847,12 +847,15 @@ end
847847
lane :validate_public_interface do
848848
next unless is_check_required(sources: sources_matrix[:public_interface], force_check: @force_check)
849849

850-
# Run the analysis on the current branch
850+
# Get branch names
851851
original_branch = current_branch
852+
target_branch = ENV['GITHUB_BASE_REF'] || (original_branch.include?('release/') ? 'main' : 'develop')
853+
UI.important("Target branch: #{target_branch} 🕊️")
854+
855+
# Run the analysis on the current branch
852856
sh('interface-analyser analysis ../Sources/ public_interface_current.json')
853857

854858
# Checkout the target branch
855-
target_branch = original_branch.include?('release/') ? 'main' : 'develop'
856859
sh("git fetch origin #{target_branch}")
857860
sh("git checkout #{target_branch}")
858861

0 commit comments

Comments
 (0)