Skip to content

Commit d30880f

Browse files
bhautikpipTyler Hargraves
authored and
Tyler Hargraves
committed
Added always() to run clean up workflow (aws#259)
* Added `always()` to run clean up workflow * removed specific version from path * modified path for cleaning up resources
1 parent 1b88ca2 commit d30880f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/IntegrationTesting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
cleanup:
141141
name: Resource tear down
142142
needs: test_WebApp
143-
if: true
143+
if: always()
144144
runs-on: ubuntu-latest
145145

146146
steps:
@@ -163,7 +163,7 @@ jobs:
163163
run: terraform init
164164

165165
- name: set permissions to terraform plugins
166-
run: chmod -R a+x .terraform/plugins/registry.terraform.io/hashicorp/aws/3.5.0/linux_amd64/*
166+
run: chmod -R a+x .terraform/*
167167

168168
- name: Destroy resources
169169
run: terraform destroy -state="terraform.tfstate" -var-file="fixtures.us-west-2.tfvars" -auto-approve

0 commit comments

Comments
 (0)