Skip to content

Commit

Permalink
Refactor image pipeline module names and update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Arnold committed Aug 15, 2024
1 parent 67661d3 commit accfb48
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions workflows/terraform-plan.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -48,7 +50,7 @@ jobs:

- name: Autoformat Halt
if: env.auto_format == 'true'
run: exit 1
run: exit 0

- name: Terraform Init
id: init
Expand All @@ -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
})
L

0 comments on commit accfb48

Please sign in to comment.