From 8ca3751e3bf2fb7eac2c7eb5dc04f78300549076 Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Tue, 20 Aug 2024 13:09:58 -0700 Subject: [PATCH] Update terraform_plan.yaml --- .github/workflows/terraform_plan.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index b33719c..ee6da92 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -68,13 +68,20 @@ jobs: - name: Terraform Plan id: plan - run: terraform plan + if: github.event_name == 'pull_request' + run: terraform plan -out plans/${{ github.sha }} + continue-on-error: true + + - name: Terraform Plan + id: show_plan + if: github.event_name == 'pull_request' + run: terraform show plans/${{ github.sha }} continue-on-error: true - uses: CSVD/gh-actions-github-script@v6 if: github.event_name == 'pull_request' env: - PLAN: "terraform\n${{ steps.plan.outputs.stdout }}" + PLAN: "terraform\n${{ steps.show_plan.outputs.stdout }}" with: github-token: ${{ secrets.GH_TOKEN }} script: |