File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ permissions:
1414
1515jobs :
1616  check :
17-     #  Only run on PRs if the source branch is on someone else's repo
18-     if : " ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" 
1917    runs-on : ubuntu-latest 
2018    steps :
2119      - name : " setup" 
3129        env :
3230          REVIEWDOG_GITHUB_API_TOKEN : " ${{ secrets.GITHUB_TOKEN }}" 
3331        run : | 
34-           poetry run ruff format --diff | reviewdog -reporter=github-check -f=diff -f.diff.strip=0 -name=ruff-format -filter-mode=nofilter -fail-on-error 
32+           if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then 
33+             REPORTER="github-pr-review" 
34+           else 
35+             REPORTER="github-check" 
36+           fi 
37+           poetry run ruff format --diff | reviewdog -reporter=github-pr-revi -f=diff -f.diff.strip=0 -name=ruff-format -filter-mode=nofilter -fail-level=error 
3538name : " run ruff / check" 
3639        if : " ${{ always() && steps.install.conclusion == 'success' }}" 
3740        run : " poetry run ruff check --output-format=github" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments