Skip to content

Commit

Permalink
Merge pull request #14 from kabisa/feat/terraform-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Glaaj authored Feb 10, 2023
2 parents 1bc0055 + 90fc5ed commit 4c57b77
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

0 comments on commit 4c57b77

Please sign in to comment.