Skip to content

Commit ebaf081

Browse files
CCM-8568 Fix CI workflow
1 parent 82c2b5f commit ebaf081

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.github/workflows/stage-1-commit.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ jobs:
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

infrastructure/terraform/components/acct/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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 -->

infrastructure/terraform/components/examplecomponent/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<!-- BEGIN_TF_DOCS -->
2+
<!-- markdownlint-disable -->
3+
<!-- vale off -->
24

35
## Requirements
46

@@ -21,4 +23,6 @@ No modules.
2123
## Outputs
2224

2325
No outputs.
24-
<!-- END_TF_DOCS -->
26+
<!-- vale on -->
27+
<!-- markdownlint-enable -->
28+
<!-- END_TF_DOCS -->

scripts/config/terraform-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
2832
output-values:

scripts/githooks/check-terraform-docs.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ function main() {
2626
# check_only=[do not format, run check only]
2727
function 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

0 commit comments

Comments
 (0)