dnogu/Tofu Format
A GitHub Action to run tofu fmt with all supported options.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | The directory in which to run tofu fmt. | no | . |
| target | Target files or directories to format. If not specified, formats current directory. | no | "" |
| list | List files with formatting inconsistencies (--list=true|false). | no | true |
| write | Write result to source file instead of stdout (--write=true|false). | no | true |
| diff | Display diff of formatting changes (--diff). | no | false |
| check | Check if input is formatted (--check). Exit status non-zero if not formatted. | no | false |
| recursive | Also process files in subdirectories (--recursive). | no | false |
Outputs
| name | description |
|---|---|
| fmt-output | The output from tofu fmt. |
| needs-formatting | Boolean indicating if any files needed formatting. |
| formatted-files | List of files that were formatted or need formatting. |