Skip to content

Commit

Permalink
Merge pull request #7 from oaknational/ENG-899
Browse files Browse the repository at this point in the history
fix(ENG-899): adding a check to ensure that TFLint exists
  • Loading branch information
triwats authored Aug 27, 2024
2 parents 2722b7c + 47df0cd commit 33f3a41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actions/terraform-checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ runs:
with:
terraform_version: ${{ inputs.terraform_version }}

- name: Check for .tflint.hcl file
shell: bash
run: |
if [ -f .tflint.hcl ]; then
echo "INFO: .tflint.hcl file found in the root directory."
else
echo "ERROR: .tflint.hcl file is missing. Please add it to the root of the repository. See the internal terraform docs"
exit 1
fi
- name: Cache plugin dir
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 33f3a41

Please sign in to comment.