From e77cf7454b8268c2700356802e25e46e7925e6ff Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Fri, 9 Aug 2024 15:17:56 -0700 Subject: [PATCH] Update terraform-plan.yaml --- .github/workflows/terraform-plan.yaml | 72 +++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/terraform-plan.yaml b/.github/workflows/terraform-plan.yaml index 9f27186..6d4dae0 100644 --- a/.github/workflows/terraform-plan.yaml +++ b/.github/workflows/terraform-plan.yaml @@ -51,40 +51,40 @@ jobs: run: terraform plan -no-color 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 }}" - with: - github-token: ${{ secrets.GH_TOKEN }} - script: | - const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` - #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` - #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` -
Validation Output - - \`\`\`\n - ${{ steps.validate.outputs.stdout }} - \`\`\` - -
- - #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` - -
Show Plan - - \`\`\`\n - ${process.env.PLAN} - \`\`\` - -
- - *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`; - - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: output - }) +# - uses: CSVD/gh-actions-github-script@v6 +# if: github.event_name == 'pull_request' +# env: +# PLAN: "terraform\n${{ steps.plan.outputs.stdout }}" +# with: +# github-token: ${{ secrets.GH_TOKEN }} +# script: | +# const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` +# #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` +# #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` +#
Validation Output + +# \`\`\`\n +# ${{ steps.validate.outputs.stdout }} +# \`\`\` + +#
+ +# #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` + +#
Show Plan + +# \`\`\`\n +# ${process.env.PLAN} +# \`\`\` + +#
+ +# *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`; + +# github.rest.issues.createComment({ +# issue_number: context.issue.number, +# owner: context.repo.owner, +# repo: context.repo.repo, +# body: output +# })