Skip to content

Commit

Permalink
fix: matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Nov 6, 2024
1 parent d5439d5 commit 180b270
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tf-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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

0 comments on commit 180b270

Please sign in to comment.