Skip to content

Commit c8359f8

Browse files
committed
Add reviewdog/action-suggester for TF syntax
1 parent d1cb798 commit c8359f8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tf-commenter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Post comments about TF syntax
2+
3+
on: pull_request
4+
5+
jobs:
6+
post-format-comment:
7+
runs-on: ubuntu-22.04
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: hashicorp/setup-terraform@v3
12+
with:
13+
terraform_version: 1.6.6
14+
- name: Terraform Format
15+
run: terraform fmt -recursive
16+
- name: Suggest format changes
17+
uses: reviewdog/action-suggester@v1
18+
with:
19+
tool_name: terraform fmt
20+
level: error

0 commit comments

Comments
 (0)