83
83
uses : actions/checkout@v4
84
84
85
85
- name : Install terraform
86
- uses : hashicorp/setup-terraform@v2
87
- with :
88
- terraform_wrapper : false
86
+ uses : hashicorp/setup-terraform@v3.1.2
89
87
90
88
- name : Initialise terraform
91
89
run : terraform init
@@ -163,7 +161,8 @@ jobs:
163
161
164
162
- name : Write out Lab VMs info
165
163
run : |
166
- terraform output labs | sed '1d;$d' > ssh_list.txt
164
+ terraform output -raw labs > ssh_list.txt
165
+ sed -i 's/"//g' ssh_list.txt
167
166
168
167
- name : Echo Lab VMs info
169
168
run : |
@@ -179,7 +178,7 @@ jobs:
179
178
180
179
- name : Write out registry VMs info
181
180
run : |
182
- terraform output registry_ip | sed '1d;$d' > registry.txt
181
+ terraform output -raw registry_ip > registry.txt
183
182
sed -i 's/"//g' registry.txt
184
183
cat registry.txt
185
184
@@ -223,7 +222,7 @@ jobs:
223
222
# name: ${{ inputs.deployment_type }}-terraform-artifacts
224
223
225
224
- name : Pause for debugging (cancel workflow to clean up)
226
- if : always() && ${{ inputs.debug_mode == ' true' }} && ${{ inputs.deployment_type == 'Test' }}
225
+ if : always() && ${{ inputs.debug_mode == true }} && ${{ inputs.deployment_type == 'Test' }}
227
226
run : |
228
227
echo "Pausing for 7d for debugging... cancel manually to proceed."
229
228
if true; then sleep 7d; done
0 commit comments