You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option for terraform fmt to write changes to source files (hashicorp#138)
* Add option to write formatting changes
* Add output whether formatting was written to source
* Update terraform_fmt.sh
* using variable for recursive
* Fix typo
Co-Authored-By: Matthew Sanabria <[email protected]>
* Improve logic check
Co-Authored-By: Matthew Sanabria <[email protected]>
* Use zero to represent false
Co-Authored-By: Matthew Sanabria <[email protected]>
* Use one to represent true
Co-Authored-By: Matthew Sanabria <[email protected]>
* Update logic check to use one
Co-Authored-By: Matthew Sanabria <[email protected]>
* Add missing spacing
Co-Authored-By: Matthew Sanabria <[email protected]>
Co-authored-by: Ryan Butler <[email protected]>
Co-authored-by: Matthew Sanabria <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ Inputs configure Terraform GitHub Actions to perform different actions.
75
75
* `tf_actions_cli_credentials_token` - (Optional) Token for the CLI credentials file.
76
76
* `tf_actions_comment` - (Optional) Whether or not to comment on GitHub pull requests. Defaults to `true`.
77
77
* `tf_actions_working_dir` - (Optional) The working directory to change into before executing Terraform subcommands. Defaults to `.` which means use the root of the GitHub repository.
78
+
* `tf_actions_fmt_write` - (Optional) Whether or not to write `fmt` changes to source files. Defaults to `false`.
78
79
79
80
## Outputs
80
81
@@ -83,6 +84,7 @@ Outputs are used to pass information to subsequent GitHub Actions steps.
83
84
* `tf_actions_output` - The Terraform outputs in (stringified) JSON format.
84
85
* `tf_actions_plan_has_changes` - `'true'` if the Terraform plan contained changes, otherwise `'false'`.
85
86
* `tf_actions_plan_output` - The Terraform plan output.
87
+
* `tf_actions_fmt_written` - Whether or not the Terraform formatting from `fmt` was written to source files.
0 commit comments