Skip to content

Commit

Permalink
Try to fix pull request preview deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Jun 19, 2024
1 parent dfcc6df commit 56a8094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: read

concurrency:
group: terraform-apply-${{ github.ref }}
group: terraform-apply-refs/pull/${{ github.event.number }}/merge
cancel-in-progress: false

steps:
Expand All @@ -37,7 +37,7 @@ jobs:
role-duration-seconds: 900

- name: Initialize Terraform
run: terraform init -backend-config="key=${{ github.ref }}.tfstate"
run: terraform init -backend-config="key=refs/pull/${{ github.event.number }}/merge.tfstate"

- name: Terraform Destroy
run: terraform destroy -var=ref=${{ github.ref }} -auto-approve
run: terraform destroy -var=ref=refs/pull/${{ github.event.number }}/merge -auto-approve

0 comments on commit 56a8094

Please sign in to comment.