@@ -13,13 +13,32 @@ 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+ branch_exists="$?"
24+ echo "branch_exists=$branch_exists" >> "$GITHUB_OUTPUT"
25+
26+ - name : Create automation branch
27+ if : steps.auto-branch-check.outputs.branch_exists == '1'
28+ run : |
29+ git checkout -b auto/bump-timestamps
30+ git config --global --add --bool push.autoSetupRemote true
31+ git push
32+
33+ - uses : actions/checkout@v2
34+ with :
35+ ref : auto/bump-timestamps
36+
1637 - name : Check for updated Ark timestamps and replace in defaults.yml
1738 run : |
1839 dev/setup-env.sh
1940 . venv/bin/activate
2041 . environments/.stackhpc/activate
21- git checkout auto/bump-timestamps || git checkout -b auto/bump-timestamps
22- git pull origin auto/bump-timestamps
2342 ansible-playbook ansible/ci/update_timestamps.yml -v
2443
2544 - name : Check if timestamps were changed
4362 build_fatimage :
4463 if : " ${{ needs.upstream_check.outputs.timestamps_changed }} == 0"
4564 needs : upstream_check
46- uses : ./ .github/workflows/fatimage.yml
65+ uses : stackhpc/ansible-slurm-appliance/ .github/workflows/fatimage.yml@auto/bump-timestamps
4766 with :
4867 ci_cloud : LEAFCLOUD
4968 branch : auto/bump-timestamps
5675 runs-on : ubuntu-latest
5776 steps :
5877 - uses : actions/checkout@v2
78+ with :
79+ ref : auto/bump-timestamps
5980
6081 - name : Bump CI with new images
6182 run : |
0 commit comments