From 180b270304da4947c4134b50e2a049d534f2a61b Mon Sep 17 00:00:00 2001 From: Jory Irving Date: Wed, 6 Nov 2024 13:27:12 -0700 Subject: [PATCH] fix: matrix --- .github/workflows/tf-diff.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tf-diff.yaml b/.github/workflows/tf-diff.yaml index 0e2bba594c..af118cfb6f 100644 --- a/.github/workflows/tf-diff.yaml +++ b/.github/workflows/tf-diff.yaml @@ -96,7 +96,7 @@ jobs: - name: Terraform fmt id: fmt - working-directory: terraform/${{ matrix.environment }} + working-directory: ${{ matrix.paths }} run: terraform fmt -check continue-on-error: true @@ -120,7 +120,7 @@ jobs: - name: Terraform Init id: init - working-directory: terraform/${{ matrix.environment }} + working-directory: ${{ matrix.paths }} env: AWS_ACCESS_KEY_ID: ${{ env.MINIO_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ env.MINIO_SECRET_KEY }} @@ -131,11 +131,11 @@ jobs: - name: Terraform Validate id: validate - working-directory: terraform/${{ matrix.environment }} + working-directory: ${{ matrix.paths }} run: terraform validate -no-color - name: Terraform Plan - working-directory: terraform/${{ matrix.environment }} + working-directory: ${{ matrix.paths }} run: terraform plan -lock=false -var "bw_access_token=${{ secrets.BW_ACCESS_TOKEN }}" -out .planfile | grep -v "Refreshing state...\|Reading...\|Read complete after" - name: Post PR comment @@ -144,6 +144,6 @@ jobs: uses: borchero/terraform-plan-comment@v2 with: token: ${{ steps.app-token.outputs.token }} - header: "📝 Terraform Plan for ${{ matrix.environment }}" - working-directory: terraform/${{ matrix.environment }} + header: "📝 Terraform Plan for ${{ matrix.paths }}" + working-directory: ${{ matrix.paths }} planfile: .planfile