luizm / action-tf-checker

A GitHub action to check a terraform recipes using a subcommand fmt and validate to do that.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tf-checker

A GitHub Action that check a terraform recipes using a subcommand fmt and validate to do that.

Usage

Job example to check all tf files but ignore the directory .dirty-dir

name: example
on:
  push:
jobs:
  tf-checker:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: run the tf-checker
        uses: luizm/action-tf-checker@v0.1.0
        env:
          TF_CHECKER_EXCLUDE_REGEX: "/.dirty-dir/*"

Environments:

  • TF_CHECKER_EXCLUDE_REGEX: The regex to filter the files or directories that don't need to check. (Optional)
  • TF_CHECKER_ALL_FILES: If set true it will check all tf files. The default is false, check only the modified files. (Optional)

About

A GitHub action to check a terraform recipes using a subcommand fmt and validate to do that.


Languages

Language:Shell 66.9%Language:Dockerfile 33.1%