Skip to content

Commit 4c57b77

Browse files
authored
Merge pull request #14 from kabisa/feat/terraform-formatting
2 parents 1bc0055 + 90fc5ed commit 4c57b77

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fix terraform file formatting
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
format:
8+
runs-on: ubuntu-latest
9+
name: Check if terraform files are formatted correctly.
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.event.pull_request.head.ref }}
15+
16+
- name: terraform fmt
17+
uses: dflook/terraform-fmt@v1
18+
19+
- name: Create commit
20+
uses: EndBug/add-and-commit@v9
21+
with:
22+
message: Terraform fmt
23+
default_author: github_actions
24+
push: true

0 commit comments

Comments
 (0)