diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index f2dcacd..256518c 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -69,17 +69,17 @@ jobs: - name: Terraform Plan id: plan if: github.event_name == 'pull_request' - run: terraform plan -no-color -out=${{ vars.plan_cache }}/${{ github.sha }} + run: terraform plan -out=${{ vars.plan_cache }}/${{ github.sha }} continue-on-error: true - name: Terraform Plan if: github.event_name != 'pull_request' - run: terraform plan -no-color + run: terraform plan continue-on-error: true - name: Terraform Show plan if: github.event_name == 'pull_request' - run: echo terraform_plan=$(terraform show ${{ vars.plan_cache }}/${{ github.sha }}) >> $GITHUB_ENV + run: echo terraform_plan=$(terraform show -no-color ${{ vars.plan_cache }}/${{ github.sha }}) >> $GITHUB_ENV - name: Post Terraform Plan to PR uses: CSVD/gh-actions-github-script@v6 @@ -90,6 +90,7 @@ jobs: github-token: ${{ secrets.GH_TOKEN }} script: | const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` + #### Terraform Plan ID: \`${{ github.sha }}\` #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`
Validation Output