From accfb481065db0b2b89b618a576b0dd6b8a78483 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Thu, 15 Aug 2024 12:46:38 -0700 Subject: [PATCH] Refactor image pipeline module names and update workflows --- workflows/terraform-plan.yaml.tpl | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/workflows/terraform-plan.yaml.tpl b/workflows/terraform-plan.yaml.tpl index c941500..2906111 100644 --- a/workflows/terraform-plan.yaml.tpl +++ b/workflows/terraform-plan.yaml.tpl @@ -24,7 +24,9 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_TOKEN }} - uses: CSVD/gh-actions-setup-node@v3 with: @@ -48,7 +50,7 @@ jobs: - name: Autoformat Halt if: env.auto_format == 'true' - run: exit 1 + run: exit 0 - name: Terraform Init id: init @@ -71,23 +73,4 @@ jobs: %{ endif } run: terraform plan continue-on-error: true - - - name: Update Pull Request - uses: CSVD/gh-actions-github-script@v6 - if: github.event_name == 'pull_request' - 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 }}\` - #### Terraform Plan: - $${{ steps.plan.outcome }} - *Pushed by: @$${{ github.actor }}, Action: \`$${{ github.event_name }}\`*`; - - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: output - }) \ No newline at end of file +L \ No newline at end of file