fix: detect drift on credentials id change for aks #690
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: Terraform format | |
on: | |
pull_request: | |
jobs: | |
terraform_fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v2 | |
- name: Terraform format | |
run: | | |
make format-tf | |
if [[ -n $(git status -s) ]] | |
then | |
echo "Terraform code is not formatted, format it by running 'make format-tf' and commit your changes." | |
exit 1 | |
fi | |