From 6eba1b357de32df9ce3cccf75e00cdb227a605b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wendt?= Date: Thu, 19 Dec 2024 09:56:00 +0100 Subject: [PATCH] Add reviewdog/action-suggester for TF syntax --- .github/workflows/tf-commenter.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/tf-commenter.yml diff --git a/.github/workflows/tf-commenter.yml b/.github/workflows/tf-commenter.yml new file mode 100644 index 0000000..39e265b --- /dev/null +++ b/.github/workflows/tf-commenter.yml @@ -0,0 +1,20 @@ +name: Post comments about TF syntax + +on: pull_request + +jobs: + post-format-comment: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - uses: hashicorp/setup-terraform@v3 + with: + terraform_version: 1.6.6 + - name: Terraform Format + run: terraform fmt -recursive + - name: Suggest format changes + uses: reviewdog/action-suggester@v1 + with: + tool_name: terraform fmt + level: error