8383 uses : actions/checkout@v4
8484
8585 - name : Install terraform
86- uses : hashicorp/setup-terraform@v2
87- with :
88- terraform_wrapper : false
86+ uses : hashicorp/setup-terraform@v3
8987
9088 - name : Initialise terraform
9189 run : terraform init
@@ -163,7 +161,8 @@ jobs:
163161
164162 - name : Write out Lab VMs info
165163 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
167166
168167 - name : Echo Lab VMs info
169168 run : |
@@ -179,7 +178,7 @@ jobs:
179178
180179 - name : Write out registry VMs info
181180 run : |
182- terraform output registry_ip | sed '1d;$d' > registry.txt
181+ terraform output -raw registry_ip > registry.txt
183182 sed -i 's/"//g' registry.txt
184183 cat registry.txt
185184
@@ -223,7 +222,7 @@ jobs:
223222 # name: ${{ inputs.deployment_type }}-terraform-artifacts
224223
225224 - 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' }}
227226 run : |
228227 echo "Pausing for 7d for debugging... cancel manually to proceed."
229228 if true; then sleep 7d; done
0 commit comments