From 632ab5c07537c75cacd107abba60b7978b16a5e5 Mon Sep 17 00:00:00 2001 From: miampf Date: Fri, 1 Mar 2024 15:39:30 +0100 Subject: [PATCH] actually prepare the new state for upload --- .github/workflows/e2e-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index b42546351..64f7f5cac 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -279,6 +279,16 @@ jobs: azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }} gcpServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com" + - name: Prepare terraform state folders + if: always() + shell: bash + run: | + mkdir to-zip + cp -r constellation-terraform to-zip + cp -r constellation-iam-terraform to-zip + rm to-zip/constellation-terraform/plan.zip + rm -rf to-zip/constellation-terraform/.terraform to-zip/constellation-iam-terraform/.terraform + - name: Update tfstate if: always() uses: ./.github/actions/artifact_upload