-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds an input for showing the full list of changed resources in…
… the action output (#68) * feat: adds an input for showing the full list of changed resources in the action output * chore: result of yarn run v1.22.21 $ ncc build index.js --out dist --license licenses.txt ncc: Version 0.33.4 ncc: Compiling file index.js into CJS 36kB dist/licenses.txt 900kB dist/index.js 936kB [723ms] - ncc 0.33.4 Done in 0.99s.
- Loading branch information
Showing
4 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Implementing this Action is _super_ simple and the comments are consise and easy | |
|
||
## Features | ||
|
||
- Display changes in a Terraform plan without posting larger sections of the plan change log. This approach will, in most cases, avoid the situation where plan contents are too large for a single PR comment. | ||
- Display changes in a Terraform plan without posting larger sections of the plan change log. This approach will, in most cases, avoid the situation where plan contents are too large for a single PR comment. | ||
- Collapsed as a summary by default, when expanded, the comment is broken up into sections for deletion, creation, and resource changes. The changes are also color-coded to help draw attention to each proposed modification. | ||
- This JavaScript GitHub Action runs directly on a host runner and executes faster than a Docker container Action. | ||
- Possibility to add the output to your workflow summary. | ||
|
@@ -80,13 +80,19 @@ Implementing this Action is _super_ simple and the comments are consise and easy | |
|
||
- Will hide/minimize all previous comments generated by this action. | ||
|
||
### `log-changed-resources` | ||
|
||
**Optional** Defaults to `true` | ||
|
||
- Logs all the changed resources found in the plan to the action output. | ||
|
||
## Example usage | ||
Single plan file: | ||
```yaml | ||
uses: liatrio/[email protected] | ||
with: | ||
json-file: my-tfplan.json | ||
expand-comment: 'true' | ||
expand-comment: 'true' | ||
``` | ||
Multiple plan files: | ||
```yaml | ||
|
@@ -104,7 +110,7 @@ with: | |
expand-comment: 'true' | ||
include-plan-job-summary: 'true' | ||
``` | ||
**Note:** | ||
**Note:** | ||
- When `include-plan-job-summary = true`, if the action is executed in non-Pull Request workflows, the plan output will also be posted to the job summary of that run. If you do not wish to have this behavior, apply conditional logic to your workflow file. | ||
#### Example Job Summary Output | ||
![Plan output job summary](assets/plan-output-job-summary.png) | ||
|
@@ -119,7 +125,7 @@ To use this action with OpenTofu you need to initialize OpenTofu without the wra | |
- uses: opentofu/setup-opentofu@v1 | ||
with: | ||
tofu_wrapper: false | ||
- name: Create planfile | ||
run: tofu plan -no-color -out=./.planfile | ||
|
@@ -151,7 +157,7 @@ If you'd like to suggest changes, feel free to submit a Pull Request or [open an | |
|
||
Otherwise if things aren't working as expected, please [open a new issue](https://github.com/liatrio/terraform-change-pr-commenter/issues/new). Please include code references, a description of the issue, and expected behavior. | ||
|
||
--- | ||
--- | ||
![CodeQL Security Scan](https://github.com/liatrio/terraform-change-pr-commenter/actions/workflows/codeql-analysis.yml/badge.svg?branch=main) | ||
![Release](https://github.com/liatrio/terraform-change-pr-commenter/actions/workflows/release.yml/badge.svg?branch=main) | ||
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters