Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pr-env-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ run-name: "Destroy PR Environment - #${{ github.event.pull_request.number }} (${
on:
pull_request:
types: [closed]
workflow_dispatch:

concurrency:
group: environment-${{ github.event.pull_request.number }}
Expand Down Expand Up @@ -73,9 +74,11 @@ jobs:
- name: Terraform Init
run: |
terraform -chdir=terraform/infrastructure init
terraform -chdir=terraform/infrastructure workspace new ${{ needs.set-environment-id.outputs.environment_id }} || \
terraform -chdir=terraform/infrastructure workspace select ${{ needs.set-environment-id.outputs.environment_id }}

- name: Build artifacts
run: make build get-s3-perms

- name: Terraform Destroy
run: |
terraform -chdir=terraform/infrastructure destroy \
Expand Down