Skip to content

Commit 415dc8f

Browse files
authored
feat: pass --sort-by-required to TF docs action (#3)
1 parent d1f2631 commit 415dc8f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/docs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
tf_docs_output_file: README.md
1717
tf_docs_output_method: inject
1818
tf_docs_git_push: 'true'
19+
tf_docs_args: '--sort-inputs-by-required'
1920

2021
- name: basic example docs
2122
uses: Dirrk/[email protected]
@@ -24,3 +25,4 @@ jobs:
2425
tf_docs_output_file: README.md
2526
tf_docs_output_method: inject
2627
tf_docs_git_push: 'true'
28+
tf_docs_args: '--sort-inputs-by-required'

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ No provider.
2929

3030
| Name | Description | Type | Default | Required |
3131
|------|-------------|------|---------|:--------:|
32+
| name | Solution name, e.g. `app` or `jenkins` | `string` | n/a | yes |
33+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | n/a | yes |
34+
| stage | Stage, e.g. 'prod', 'staging', 'dev' | `string` | n/a | yes |
3235
| additional\_tag\_map | Additional tags for appending to each tag map | `map(string)` | `{}` | no |
3336
| attributes | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
3437
| context | Default context to use for passing state between label invocations | <pre>object({<br> namespace = string<br> environment = string<br> stage = string<br> name = string<br> enabled = bool<br> delimiter = string<br> attributes = list(string)<br> label_order = list(string)<br> tags = map(string)<br> additional_tag_map = map(string)<br> regex_replace_chars = string<br> })</pre> | <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": "",<br> "enabled": true,<br> "environment": "",<br> "label_order": [],<br> "name": "",<br> "namespace": "",<br> "regex_replace_chars": "",<br> "stage": "",<br> "tags": {}<br>}</pre> | no |
3538
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | `string` | `"-"` | no |
3639
| enabled | Set to false to prevent the module from creating any resources | `bool` | `true` | no |
3740
| label\_order | The naming order of the id output and Name tag | `list(string)` | `[]` | no |
38-
| name | Solution name, e.g. `app` or `jenkins` | `string` | n/a | yes |
39-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | n/a | yes |
4041
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed | `string` | `"/[^a-zA-Z0-9-]/"` | no |
41-
| stage | Stage, e.g. 'prod', 'staging', 'dev' | `string` | n/a | yes |
4242
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |
4343

4444
## Outputs

0 commit comments

Comments
 (0)