@@ -44,10 +44,16 @@ jobs:
44
44
CI_CLOUD : ${{ vars.CI_CLOUD }} # default from repo settings
45
45
TF_VAR_os_version : ${{ matrix.os_version }}
46
46
steps :
47
- - uses : actions/checkout@v4
47
+
48
+ - name : Find the latest release
49
+ run : |
50
+ echo LATEST_RELEASE_TAG=$(curl -s https://api.github.com/repos/stackhpc/ansible-slurm-appliance/releases/latest | jq -r .tag_name) >> "$GITHUB_ENV"
51
+ echo LATEST_RELEASE_TAG: $LATEST_RELEASE_TAG
52
+
53
+ - name : Checkout latest release
54
+ uses : actions/checkout@v4
48
55
with :
49
- fetch-depth : 0
50
- fetch-tags : true
56
+ ref : $LATEST_RELEASE_TAG
51
57
52
58
- name : Override CI_CLOUD if PR label is present
53
59
if : ${{ github.event_name == 'pull_request' }}
79
85
run : cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
80
86
shell : bash
81
87
82
- - name : Find the latest release
83
- run : |
84
- echo LATEST_RELEASE_TAG=$(curl -s https://api.github.com/repos/stackhpc/ansible-slurm-appliance/releases/latest | jq -r .tag_name) >> "$GITHUB_ENV"
85
- echo LATEST_RELEASE_TAG: $LATEST_RELEASE_TAG
86
-
87
- - name : Checkout latest release
88
- run : git checkout $LATEST_RELEASE_TAG
89
-
90
88
- name : Install ansible etc
91
89
run : dev/setup-env.sh
92
90
@@ -181,9 +179,9 @@ jobs:
181
179
env :
182
180
DEMO_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD }}
183
181
184
- - name : Switch to current branch
185
- run : git checkout -
186
-
182
+ - name : Checkout current branch
183
+ uses : actions/ checkout@v4
184
+
187
185
- name : Reimage login and control nodes to image in current branch
188
186
id : reimage_non_compute
189
187
run : |
0 commit comments