File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 99  using : " composite" 
1010  steps :
1111    - name : Run yarn-deduplicate (highest) 
12-       if : ${{ env.STRATEGY == 'highest' }} 
12+       if : ${{ inputs.strategy == 'highest' }} 
13+       shell : bash 
1314      run : | 
1415        yarn global add yarn-deduplicate 
1516        yarn-deduplicate --strategy highest 
1617        yarn-deduplicate --strategy fewer --packages @types/node # @types/node@* causes unneeded duplication in highest mode 
1718        yarn 
1819
1920name : Run yarn-deduplicate (fewer) 
20-       if : ${{ env.STRATEGY == 'fewer' }} 
21+       if : ${{ inputs.strategy == 'fewer' }} 
22+       shell : bash 
2123      run : | 
2224        yarn global add yarn-deduplicate 
2325        yarn-deduplicate --strategy fewer --exclude @types/unist # @types/unist gets downgraded in this mode 
Original file line number Diff line number Diff line change 5656              issue_number: context.issue.number, 
5757              owner: context.repo.owner, 
5858              repo: context.repo.repo, 
59-             }); 
59+             }).then(d => d.json()) ; 
6060            if (!comments.find(c => c.body.includes('is not deduplicated. You can try deduplicating'))) { 
6161              github.rest.issues.createComment({ 
6262                issue_number: context.issue.number, 
Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ jobs:
2222              owner: context.repo.owner, 
2323              repo: context.repo.repo, 
2424              body: 'Ok, trying to deduplicate using strategy `${{ env.STRATEGY }}`' 
25-             }) 
26-             return ( await github.rest.pulls.get({ 
25+             });  
26+             var pull =  await github.rest.pulls.get({ 
2727              owner: context.repo.owner, 
2828              repo: context.repo.repo, 
2929              pull_number: context.issue.number 
30-             })).data.head.ref 
30+             }).then(d => d.json()); 
31+             return pull.data.head.ref; 
3132
3233name : Check out the repository 
3334        uses : actions/checkout@v4 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments