File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : auto-publish 
2+ run-name : Automatically publish documentation 
3+ on :
4+   schedule :
5+     - cron : ' 45 23 * * WED' 
6+ jobs :
7+   auto-publish :
8+     runs-on : ubuntu-latest 
9+     permissions :
10+       contents : write 
11+     defaults :
12+       run :
13+         shell : bash 
14+         working-directory : ./ 
15+     steps :
16+       - name : Check out repository 
17+         uses : actions/checkout@v4 
18+         with :
19+           fetch-depth : 0 
20+       - name : Check out main 
21+         run : | 
22+           echo "Checking out main branch" 
23+           git config user.name github-actions 
24+           git config user.email [email protected]  25+           git checkout main 
26+        - name : Check out live 
27+         run : | 
28+           echo "Checking out live branch" 
29+           git checkout live 
30+        - name : Merge from main into live 
31+         run : | 
32+           echo "Merging from main to live" 
33+           git merge main 
34+        - name : Push changes 
35+         run : | 
36+           echo "Pushing changes to live branch" 
37+           git push origin live 
38+ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments