File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 3232          GH_TOKEN : ${{ steps.generate-token.outputs.token }} 
3333        run : |- 
3434          RELEASE="${{ github.event.inputs.release }}" 
35-            
35+           BRANCH="redis_docs_sync_${RELEASE}" 
36+ 
3637          # Generate modules-api-ref.md 
3738          gh repo clone redis/redis 
3839          pushd redis 
4142          utils/generate-module-api-doc.rb > generated-modules-api-ref.md 
4243          popd 
4344
45+           git checkout -b "${BRANCH}" 
46+ 
4447          mv redis/generated-modules-api-ref.md content/develop/reference/modules/modules-api-ref.md 
4548
4649          # Apply frontmatter patch 
5558            git config user.email "177626021+redisdocsapp[bot]@users.noreply.github.com" 
5659            git config user.name "redisdocsapp[bot]" 
5760            git commit -m "Update modules-api-ref.md for release ${RELEASE}" 
58-             git push origin main 
61+             git push origin "${BRANCH}" 
62+ 
63+             gh pr create \ 
64+               --body "redis docs sync ${RELEASE}" \ 
65+               --title "redis docs sync ${RELEASE}" \ 
66+               --head "$BRANCH" \ 
67+               --base "main" 
5968          fi 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments