Skip to content

Commit

Permalink
Add terraform fmt pr creator
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri committed Dec 30, 2023
1 parent 1083827 commit 99769e8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/terraform-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tflint:
name: Terraform Linter
name: Lint Terraform
runs-on: ubuntu-22.04
steps:
-
Expand All @@ -30,3 +30,22 @@ jobs:
-
name: Run TFLint
run: tflint -f compact

format:
runs-on: ubuntu-22.04
name: Formate Terraform
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Run terraform fmt
uses: dflook/terraform-fmt@v1
-
name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "🔨 Run `terraform fmt`"
title: 🔨 Reformat Terraform Files
body: Update Terraform files to canonical format using `terraform fmt`
branch: refactor/terraform-fmt

0 comments on commit 99769e8

Please sign in to comment.