File tree Expand file tree Collapse file tree 5 files changed +16
-10
lines changed
infrastructure/terraform/components Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 8080 fetch-depth : 0 # Full history is needed to compare branches
8181 - name : " Check to see if Terraform Docs are up-to-date"
8282 run : |
83- for dir in $(find infrastructure/terraform/{components,modules} -mindepth 1 -maxdepth 1 -type d); do
84- make terraform-docs dir=$dir
85- done
83+ make terraform-docs
8684 - name : " Stage changes"
8785 run : |
8886 git add infrastructure/terraform/**/*.md
Original file line number Diff line number Diff line change 11<!-- BEGIN_TF_DOCS -->
2+ <!-- markdownlint-disable -->
3+ <!-- vale off -->
24
35## Requirements
46
@@ -27,4 +29,6 @@ No modules.
2729| Name | Description |
2830| ------| -------------|
2931| <a name =" output_dns_zone " ></a > [ dns\_ zone] ( #output\_ dns\_ zone ) | n/a |
30- <!-- END_TF_DOCS -->
32+ <!-- vale on -->
33+ <!-- markdownlint-enable -->
34+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change 11<!-- BEGIN_TF_DOCS -->
2+ <!-- markdownlint-disable -->
3+ <!-- vale off -->
24
35## Requirements
46
@@ -21,4 +23,6 @@ No modules.
2123## Outputs
2224
2325No outputs.
24- <!-- END_TF_DOCS -->
26+ <!-- vale on -->
27+ <!-- markdownlint-enable -->
28+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ output:
2222 mode : inject
2323 template : |-
2424 <!-- BEGIN_TF_DOCS -->
25+ <!-- markdownlint-disable -->
26+ <!-- vale off -->
2527 {{ .Content }}
28+ <!-- vale on -->
29+ <!-- markdownlint-enable -->
2630 <!-- END_TF_DOCS -->
2731
2832output-values :
Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ function main() {
2626# check_only=[do not format, run check only]
2727function terraform-docs() {
2828
29- # shellcheck disable=SC2044
30- for dir in $( find infrastructure/terraform/{components,modules} -mindepth 1 -maxdepth 1 -type d) ; do
31- make terraform-docs dir=" ${dir} "
32- done
33-
29+ make terraform-docs
3430 git add infrastructure/terraform/** /* .md
3531}
3632
You can’t perform that action at this time.
0 commit comments