Skip to content

Commit cda4df5

Browse files
Merge pull request #956 from NHSDigital/feature/made14-NRL-1473-fix-pr-destroy
NRL-1473 Fix PR env destroy workflow
2 parents 6c888c2 + 605b630 commit cda4df5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pr-env-destroy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ run-name: "Destroy PR Environment - #${{ github.event.pull_request.number }} (${
44
on:
55
pull_request:
66
types: [closed]
7+
workflow_dispatch:
78

89
concurrency:
910
group: environment-${{ github.event.pull_request.number }}
@@ -73,9 +74,11 @@ jobs:
7374
- name: Terraform Init
7475
run: |
7576
terraform -chdir=terraform/infrastructure init
76-
terraform -chdir=terraform/infrastructure workspace new ${{ needs.set-environment-id.outputs.environment_id }} || \
7777
terraform -chdir=terraform/infrastructure workspace select ${{ needs.set-environment-id.outputs.environment_id }}
7878
79+
- name: Build artifacts
80+
run: make build get-s3-perms
81+
7982
- name: Terraform Destroy
8083
run: |
8184
terraform -chdir=terraform/infrastructure destroy \

0 commit comments

Comments
 (0)