From f2982e6c0ea5f7363de1d0e513cea113fc279976 Mon Sep 17 00:00:00 2001 From: Anupam Date: Sat, 15 Jun 2024 05:54:37 +0530 Subject: [PATCH] feat: added archive artifact step --- .github/workflows/gitops.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitops.yml b/.github/workflows/gitops.yml index 49e69dc..75e353f 100644 --- a/.github/workflows/gitops.yml +++ b/.github/workflows/gitops.yml @@ -86,7 +86,15 @@ jobs: # Generates an execution plan for Terraform - name: Terraform Plan id: tf_plan - run: terraform plan -no-color + run: terraform plan -out=tfplan -no-color + + - name: Archive Artifacts + uses: actions/upload-artifact@v4 + with: + name: tf-plan-output + path: | + ${{ env.TERRAFORM_DIR }}/tfplan + retention-days: 90 # Comments the terraform plan output on pull request - id: comment_output