File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -563,12 +563,15 @@ end
563
563
lane :validate_public_interface do
564
564
next unless is_check_required ( sources : sources_matrix [ :public_interface ] , force_check : @force_check )
565
565
566
- # Run the analysis on the current branch
566
+ # Get branch names
567
567
original_branch = current_branch
568
+ target_branch = ENV [ 'GITHUB_BASE_REF' ] || ( original_branch . include? ( 'release/' ) ? 'main' : 'develop' )
569
+ UI . important ( "Target branch: #{ target_branch } 🕊️" )
570
+
571
+ # Run the analysis on the current branch
568
572
sh ( 'interface-analyser analysis ../Sources/ public_interface_current.json' )
569
573
570
574
# Checkout the target branch
571
- target_branch = original_branch . include? ( 'release/' ) ? 'main' : 'develop'
572
575
sh ( "git fetch origin #{ target_branch } " )
573
576
sh ( "git checkout #{ target_branch } " )
574
577
You can’t perform that action at this time.
0 commit comments