From c38a17e82a3809a17ea0b34ae865b9b8ecbaf66e Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Thu, 15 Aug 2024 09:08:52 -0700 Subject: [PATCH] Refactor image pipeline module names and update workflows --- workflows/terraform-plan.yaml.tpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/workflows/terraform-plan.yaml.tpl b/workflows/terraform-plan.yaml.tpl index c0854e1..63f91c5 100644 --- a/workflows/terraform-plan.yaml.tpl +++ b/workflows/terraform-plan.yaml.tpl @@ -68,9 +68,9 @@ jobs: - uses: actions/github-script@v7 if: github.event_name == 'pull_request' env: - PLAN: "terraform\n${{ steps.plan.outputs.stdout }}" + PLAN: "terraform\n$${{ steps.plan.outputs.stdout }}" with: - github-token: ${{ secrets.GH_TOKEN }} + github-token: $${{ secrets.GH_TOKEN }} script: | // 1. Retrieve existing bot comments for the PR const { data: comments } = await github.rest.issues.listComments({ @@ -83,28 +83,28 @@ jobs: }) // 2. Prepare format of the comment - const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` - #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` - #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` + 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 }} + $${{ steps.validate.outputs.stdout }} \`\`\`
- #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` + #### Terraform Plan 📖\`$${{ steps.plan.outcome }}\`
Show Plan \`\`\`\n - ${process.env.PLAN} + $${process.env.PLAN} \`\`\`
- *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`; + *Pusher: @$${{ github.actor }}, Action: \`$${{ github.event_name }}\`, Working Directory: \`$${{ env.tf_actions_working_dir }}\`, Workflow: \`$${{ github.workflow }}\`*`; // 3. If we have a comment, update it, otherwise create a new one if (botComment) {