Skip to content

Commit b05d149

Browse files
authored
Merge pull request #133 from trussworks/barry-update-validate-yml
"ci: validate-tf instead of validate and TFDocs GHA"
2 parents 076575e + 6dad0b9 commit b05d149

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: validate
1+
name: validate-tf
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
validate:
13-
uses: trussworks/shared-actions/.github/workflows/validate.yml@main
12+
validate-tf:
13+
uses: trussworks/shared-actions/.github/workflows/validate-tf.yml@main
1414
with:
1515
go-version: 1.19

.pre-commit-config.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
exclude: README.m(ark)?d(own)?
2626

2727
- repo: https://github.com/igorshubovych/markdownlint-cli
28-
rev: v0.32.2
28+
rev: v0.33.0
2929
hooks:
3030
- id: markdownlint
3131

@@ -34,10 +34,13 @@ repos:
3434
hooks:
3535
- id: shell-lint
3636

37+
- repo: https://github.com/terraform-docs/terraform-docs
38+
rev: "v0.16.0"
39+
hooks:
40+
- id: terraform-docs-go
41+
args: ["markdown", "table", "--output-file", "README.md", "."]
42+
3743
- repo: https://github.com/antonbabenko/pre-commit-terraform
38-
rev: v1.76.0
44+
rev: v1.77.1
3945
hooks:
40-
- id: terraform_docs
41-
args:
42-
- --args=--config=.terraform-docs.yml
4346
- id: terraform_fmt

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module "acm_cert" {
1919
}
2020
```
2121

22-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
22+
<!-- BEGIN_TF_DOCS -->
2323
## Requirements
2424

2525
| Name | Version |
@@ -64,7 +64,7 @@ No modules.
6464
| Name | Description |
6565
|------|-------------|
6666
| acm\_arn | The ARN of the validated ACM certificate. |
67-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
67+
<!-- END_TF_DOCS -->
6868

6969
## Developer Setup
7070

0 commit comments

Comments
 (0)