From f56ba5cdfa32b10af6a0e8b74721a43e63d29aa6 Mon Sep 17 00:00:00 2001 From: James Logan Date: Thu, 10 Oct 2024 14:30:44 -0700 Subject: [PATCH] dev --- .github/workflows/terraform-checks.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/terraform-checks.yml b/.github/workflows/terraform-checks.yml index 90079e6..238e7d7 100644 --- a/.github/workflows/terraform-checks.yml +++ b/.github/workflows/terraform-checks.yml @@ -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/gh-actions@v1.3.0 + with: + working-dir: ./terraform/s3-remote-state + git-push: "true" - name: Install tflint run: | curl -s https://raw.githubusercontent.com/terraform-linters/\ @@ -32,6 +39,3 @@ jobs: - name: Run terraform tflint run: | tflint --chdir=terraform/ --recursive - - name: Document infrastructure in markdown files - run: | - terraform-docs --help