File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ inputs:
2525    description : " GitHub token to use for pull/push" 
2626    type : string 
2727    required : true 
28-   delete_branch :
29-     description : " Delete the source branch after merge" 
30-     type : boolean 
31-     default : false 
3228
3329runs :
3430  using : " composite" 
6460        GH_TOKEN : ${{ inputs.token_pr }} 
6561    - name : Merge the created PR 
6662      if : ${{ inputs.merge == 'true' }} 
67-       run : gh pr merge --merge --admin 
63+       run : gh pr merge --merge --admin --delete-branch  
6864      shell : bash 
6965      env :
7066        GH_TOKEN : ${{ inputs.token_pr }} 
71-     - name : Delete the source branch 
72-       if : ${{ inputs.merge == 'true' && inputs.delete_branch == 'true' }} 
73-       run : | 
74-         if git show-ref --verify --quiet refs/heads/${{ steps.push.outputs.branch }}; then 
75-           git push origin -d ${{ steps.push.outputs.branch }} 
76-         else 
77-           echo "Nothing to delete. Branch ${{ steps.push.outputs.branch }} does not exist." 
78-         fi 
79- shell : bash 
80-       env :
81-           GH_TOKEN : ${{ inputs.token_pr }} 
Original file line number Diff line number Diff line change 2121          target : " rel/dev" 
2222          token_pr : ${{ secrets.TOKEN_GITHUB_YENKINS_ADMIN }} 
2323          token_push : ${{ secrets.TOKEN_GITHUB_YENKINS_ADMIN }} 
24-           delete_branch : true 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments