File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,15 @@ jobs:
3535       - name : Create branch and commit VERSION 
3636        run : | 
3737          branch="update-version-${{ steps.draft.outputs.tag_name }}" 
38-           git checkout -b "$branch" 
38+           git push origin --delete "$branch" || echo "No remote branch to delete" 
39+           git fetch origin main 
40+           git checkout -b "$branch" origin/main 
3941          echo "${{ steps.draft.outputs.tag_name }}" | sed 's/^v//' > VERSION 
4042          git add VERSION 
4143          git config user.name "github-actions[bot]" 
4244          git config user.email "github-actions[bot]@users.noreply.github.com" 
43-           git commit -m "chore: add VERSION ${{ steps.draft.outputs.tag_name }}" || echo "No changes to commit"  
44-           git push --set-upstream origin "$branch" --force  
45+           git commit -m "chore: add VERSION ${{ steps.draft.outputs.tag_name }}" 
46+           git push --set-upstream origin "$branch" 
4547
4648
4749       - name : Create pull request 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments