Skip to content

Check your Terraform code for compatibility with its official standards.

License

Notifications You must be signed in to change notification settings

snakebite-me/terraform-fmt-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform FMT

Check your Terraform code for compatibility with its official standards.

Usage

name: Terraform FMT
on:
  workflow_dispatch:

jobs:
  fmt:
    name: Terraform FMT
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repo
        uses: actions/checkout@master
        
      - name: Fmt
        uses: snakebite-me/terraform-fmt-action@main
        with:
          recursive: false
          paths: "dir_a;dir_b;file_c.tf"

Inputs

paths - Semicolon-separated list of files and directories to check. Defaults to repository root.

recursive - Whether to check directories recursively. Defaults to true. Ignored if a path leads to a file instead of a directory.

Outputs

misformatted - List of strings containing semicolon-separated paths of misformatted files. Returns a separate string for each path provided.

About

Check your Terraform code for compatibility with its official standards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published