PUB-2182 add terraform_format.yml #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format terraform files | |
permissions: | |
contents: write | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
name: Check terraform file are formatted correctly | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: terraform fmt | |
uses: dflook/terraform-fmt@v1 | |
- name: commit format changes to branch | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Automated Change | |
commit_user_name: Terraform format GitHub Actions Bot |