File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 4444            return deployment.data.id 
4545
4646       - uses : actions/checkout@v4 
47+         with :
48+           ref : ${{ github.event.pull_request.head.ref }} 
4749
4850      - uses : actions/download-artifact@v4 
4951        if : github.repository == 'elastic/docs-builder' 
Original file line number Diff line number Diff line change @@ -27,15 +27,26 @@ name: docs
2727on:
2828  pull_request_target:
2929    types:
30-       - closed
30+       - synchronize
31+       - opened
32+       - reopened
33+ 
34+ permissions:
35+   contents: read
36+ 
37+ concurrency:
38+   group: ${{ github.workflow }}-${{ github.ref }}
39+   cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
3140
3241jobs:
3342  docs-preview:
34-     uses: elastic/docs-builder/.github/workflows/preview-cleanup .yml@main 
35-     permissions: # this is needed 
43+     uses: elastic/docs-builder/.github/workflows/preview.yml@feature/consumer-preview-action 
44+     permissions:
3645      contents: read
3746      id-token: write
3847      deployments: write
48+     with:
49+       strict: false
3950``` 
4051
4152:::
5263
5364jobs:
5465  docs-preview:
55-     uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@feature/consumer-preview-action 
66+     uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main 
5667    permissions:
5768      contents: read
5869      id-token: write
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments