File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 3838      - name : Get changed files 
3939        id : changed-files 
4040        run : | 
41-           if ${{ github.event_name == 'pull_request ' }}; then 
41+           if ${{ github.event_name == 'pull_request_target ' }}; then 
4242              echo "files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ steps.pr.outputs.result && fromJSON(steps.pr.outputs.result).merge_commit_sha }} | grep -E '\.(sh|func)$' | xargs)" >> $GITHUB_OUTPUT 
4343          else 
4444              echo "files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep -E '\.(sh|func)$' | xargs)" >> $GITHUB_OUTPUT 
7070          fi 
7171
7272       - name : Post comment with results 
73-         if : always() && steps.changed-files.outputs.files != '' && github.event_name == 'pull_request ' 
73+         if : always() && steps.changed-files.outputs.files != '' && github.event_name == 'pull_request_target ' 
7474        uses : actions/github-script@v7 
7575        with :
7676          script : | 
Original file line number Diff line number Diff line change 3333        with :
3434          fetch-depth : 0  #  Ensure the full history is fetched for accurate diffing
3535          ref : ${{ github.event_name == 'pull_request_target' && fromJSON(steps.pr.outputs.result).merge_commit_sha || '' }} 
36-           
37-       - name : Set execute permission for .sh files 
38-         run : | 
39-           chmod +x ct/*.sh 
4036
4137      - name : Get changed files 
4238        id : changed-files 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments