Skip to content
git-pull-request

GitHub Action

Enforce Terraform fmt

v1.0.0 Latest version

Enforce Terraform fmt

git-pull-request

Enforce Terraform fmt

Status check which fails if any of the committed files have changes after running `terraform fmt`

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Enforce Terraform fmt

uses: leigholiver/enforce-terraform-fmt@v1.0.0

Learn more about this action in leigholiver/enforce-terraform-fmt

Choose a version

Enforce Terraform fmt

Status check which fails if any of the committed files have changes after running terraform fmt

Example usage

uses: leigholiver/enforce-terraform-fmt@v1.0.0
with:
  terraform_version: 0.14.6

Inputs

terraform_version

Required The Terraform version to use

Outputs

diff

The diff of terraform fmt changes