Skip to content

Commit

Permalink
feat: additional feature additions (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-liatrio authored May 8, 2024
1 parent ab68bb6 commit 1465fa2
Show file tree
Hide file tree
Showing 5 changed files with 12,825 additions and 12,736 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"
- run: yarn install
- run: yarn run build

Expand All @@ -26,10 +26,14 @@ jobs:
uses: ./
with:
json-file: test-data/tf_test.json
expand-comment: 'true'
include-plan-job-summary: 'true'
expand-comment: "true"
include-plan-job-summary: "true"
comment-header: "BIG HEADER"
comment-footer: "BIG FOOTER"
include-workflow-link: "true"
quiet: "true"

- name: Test PR Commenter with no changes
uses: ./
with:
with:
json-file: test-data/tf_nochanges.json
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Release
on:
push:
branches: [ main ]
branches: [main]
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"

- name: Install Dependencies
run: yarn install

- name: yarn build and semantic-release
run: yarn run build && npx semantic-release
env:
Expand Down
28 changes: 22 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Terraform Change PR Commenter
name: Terraform Change PR Commenter v2
description: Parse changes from Terraform Plan JSON and post them for PR review
branding:
icon: 'git-pull-request'
color: 'green'
icon: "git-pull-request"
color: "green"
inputs:
json-file:
description: File location for the Terraform Plan JSON file
Expand All @@ -11,15 +11,31 @@ inputs:
github-token:
description: GitHub Token
required: false
default: '${{github.token}}'
default: "${{github.token}}"
expand-comment:
description: If true, expand the details comment by default
required: false
default: 'false'
default: "false"
include-plan-job-summary:
description: If true, add the results of the plan to the workflow job summary
required: false
default: 'false'
default: "false"
comment-header:
description: Header to use for the comment
required: false
default: "Terraform Plan Changes"
comment-footer:
description: Footer to use for the comment
required: false
default: ""
include-workflow-link:
description: If true, include a link to the workflow in the comment
required: false
default: false
quiet:
description: Skips the comment if there are no changes
required: false
default: false
runs:
using: node20
main: dist/index.js
Loading

0 comments on commit 1465fa2

Please sign in to comment.