Skip to content

Commit 944e05d

Browse files
committed
make CI cleanup actually work
1 parent 881265c commit 944e05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/stackhpc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
6767
terraform apply -auto-approve
6868
69-
- name: Delete infrastructure if failed due to lack of hosts
69+
- name: Delete infrastructure if provisioning failed or run cancelled
7070
run: |
7171
. venv/bin/activate
7272
. environments/.stackhpc/activate
7373
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
7474
terraform destroy -auto-approve
75-
if: ${{ steps.provision_servers.outcome == 'failure' }}
75+
if: always() && steps.provision_servers.outcome == 'failure'
7676

7777
- name: Configure cluster
7878
run: |

0 commit comments

Comments
 (0)