From 5d1ce17f2c2184629adfd0da160c236f8d29258f Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Thu, 15 Aug 2024 16:14:25 -0700 Subject: [PATCH] Revert "Update terraform_plan.yaml (#5)" This reverts commit b3c3a021d870df26b79d433fdea711cf4dbed086. --- .github/workflows/terraform_plan.yaml | 12 +----------- main.tf | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index 50b6820..e8eb613 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -68,24 +68,14 @@ jobs: - name: Terraform Plan id: plan - if: github.event_name == 'pull_request' - run: terraform plan -no-color -out=${{ vars.plan_cache }}/${{ github.sha }} - continue-on-error: true - - - name: Terraform Plan - if: github.event_name != 'pull_request' run: terraform plan -no-color continue-on-error: true - - name: Terraform Show plan - if: github.event_name == 'pull_request' - run: echo ::set-output name=terraform_plan::$(terraform show ${{ vars.plan_cache }}/${{ github.sha }}) - - name: Post Terraform Plan to PR uses: CSVD/gh-actions-github-script@v6 if: github.event_name == 'pull_request' env: - PLAN: "terraform\n${{ env.terraform_plan }}" + PLAN: "terraform\n${{ steps.plan.outputs.stdout }}" with: github-token: ${{ secrets.GH_TOKEN }} script: | diff --git a/main.tf b/main.tf index 6c72d56..9d31c8a 100644 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ locals { collaborators = { naray007 = "push", morga471 = "push", - lolli001 = "push", + lolli001 = "pull", gomez385 = "push" } pull_request_bypassers = [