File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 5656          git status 
5757          git diff --exit-code api/ 
5858shell : bash 
59-          continue-on-error : true 
59+       continue-on-error : true 
6060  check-label :
6161    runs-on : ubuntu-latest 
6262    steps :
@@ -67,10 +67,10 @@ jobs:
6767          echo "PR Labels: $LABELS" 
6868           
6969          if echo "$LABELS" | grep -q '"api-breaking-change-signoff"'; then 
70-             echo "Special  label found ✅" 
70+             echo "api-breaking-change-signoff  label found ✅" 
7171            echo "HAS_SPECIAL_LABEL=true" >> $GITHUB_ENV 
7272          else 
73-             echo "No special  label found ❌" 
73+             echo "api-breaking-change-signoff  label not  found ❌" 
7474            echo "HAS_SPECIAL_LABEL=false" >> $GITHUB_ENV 
7575          fi 
7676
8080    steps :
8181      - name : Determine merge eligibility 
8282        run : | 
83-           if [[ "${{ needs.api-check.outputs.api_check_status }}" == "success" ]] || [[ "${{ env.HAS_SPECIAL_LABEL }}" == "true" ]]; then 
84-             echo "Merge allowed ✅" 
83+           if [[ "${{ needs.ci-check.outputs.api_check_status }}" == "success" ]]; then 
84+             echo "API check passed, no breaking changes detected ✅" 
85+             exit 0 
86+           elif [[ "${{ env.HAS_SPECIAL_LABEL }}" == "true" ]]; then 
87+             echo "Label api-breaking-change-signoff found, merge allowed ✅" 
8588            exit 0 
8689          else 
8790            echo "Merge conditions not met ❌" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments