File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5151        with :
5252          ref : ${{ github.head_ref }} 
5353      - name : Update Cargo.lock for dependabot changes 
54+         id : update-cargo-lock 
5455        if : ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }} 
5556        run : | 
5657          cargo update --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml 
6263            git add src/tests/rust_guests/callbackguest/Cargo.lock 
6364            git commit -m "Update Cargo.lock files for dependabot changes" 
6465            git push 
66+             // Set an output to indicate that the PR branch has been updated 
67+             echo "pr_updated=1" >> "$GITHUB_OUTPUT" 
6568          fi 
69+        - name : Restart workflow if changes have been made 
70+         if : steps.update-cargo-lock.outputs.pr_updated == '1' 
71+         uses : actions/github-script@v7 
72+         with :
73+           github-token : ${{ secrets.GITHUB_TOKEN }} 
74+           script : | 
75+             github.actions.log('Restarting workflow due to changes in the PR branch'); 
76+             github.actions.restart() 
6677
6778   rust :
6879    needs :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments