From 56a8094468380c6a154c4f3095e711a78ec2d7a7 Mon Sep 17 00:00:00 2001 From: Kristaps Berzinch Date: Wed, 19 Jun 2024 15:44:33 -0400 Subject: [PATCH] Try to fix pull request preview deletion --- .github/workflows/terraform-destroy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/terraform-destroy.yml b/.github/workflows/terraform-destroy.yml index 8393c57..b7a60dc 100644 --- a/.github/workflows/terraform-destroy.yml +++ b/.github/workflows/terraform-destroy.yml @@ -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: @@ -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