File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,31 @@ jobs:
1313    steps :
1414      - uses : actions/checkout@v2 
1515
16+       - name : Check automation branch exists 
17+         id : auto-branch-check 
18+         run : | 
19+           git fetch 
20+           branches=$(git branch -r) 
21+           set +e 
22+           echo $branches | grep auto/bump-timestamps 
23+           echo "branch_exists=$?" >> "$GITHUB_OUTPUT" 
24+ 
25+ name : Create automation branch 
26+         if : ${{ steps.auto-branch-check.outputs.branch_exists }} == 1 
27+         run : | 
28+           git checkout -b auto/bump-timestamps 
29+           git config --global --add --bool push.autoSetupRemote true  
30+           git push 
31+ 
32+ uses : actions/checkout@v2 
33+         with :
34+           ref : auto/bump-timestamps 
35+ 
1636      - name : Check for updated Ark timestamps and replace in defaults.yml 
1737        run : | 
1838          dev/setup-env.sh 
1939          . venv/bin/activate 
2040          . environments/.stackhpc/activate 
21-           git checkout auto/bump-timestamps || git checkout -b auto/bump-timestamps 
22-           git pull origin auto/bump-timestamps 
2341          ansible-playbook ansible/ci/update_timestamps.yml -v 
2442
2543name : Check if timestamps were changed 
5674    runs-on : ubuntu-latest 
5775    steps :
5876      - uses : actions/checkout@v2 
77+         with :
78+           ref : auto/bump-timestamps 
5979
6080      - name : Bump CI with new images 
6181        run : | 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments