Skip to content

Update pre-commit/action action to v3.0.1 #9

Update pre-commit/action action to v3.0.1

Update pre-commit/action action to v3.0.1 #9

Workflow file for this run

name: Fix terraform file formatting
on:
- pull_request
jobs:
format:
runs-on: ubuntu-latest
name: Check if terraform files are formatted correctly.
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: terraform fmt
uses: dflook/terraform-fmt@v1
- name: Create commit
uses: EndBug/add-and-commit@v9
with:
message: Terraform fmt
default_author: github_actions
push: true