Skip to content

Update actions/checkout action to v4 #4

Update actions/checkout action to v4

Update actions/checkout action to v4 #4

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@v4
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