Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSLogan committed Oct 10, 2024
1 parent 9fb58e5 commit f56ba5c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/terraform-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# terraform-docs suggests this type of checkout
ref: ${{ github.event.pull_request.head.ref }}

- name: Setup terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: v1.4.0
- name: Setup terraform-docs
- name: Invoke terraform-docs
uses: terraform-docs/[email protected]
with:
working-dir: ./terraform/s3-remote-state
git-push: "true"
- name: Install tflint
run: |
curl -s https://raw.githubusercontent.com/terraform-linters/\
Expand All @@ -32,6 +39,3 @@ jobs:
- name: Run terraform tflint
run: |
tflint --chdir=terraform/ --recursive
- name: Document infrastructure in markdown files
run: |
terraform-docs --help

0 comments on commit f56ba5c

Please sign in to comment.