Skip to content

Commit

Permalink
adding matrix for plan on module change
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson-miller committed Jan 17, 2024
1 parent 5ffde1a commit cfc9a14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/terraform-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
- 'terraform-incubator/*/!(project)/*.tf'
list-files: json
- name: List all changed files
run: echo '${{ steps.changed-files.outputs.project-change_files }}'
run: echo '${{ steps.changed-files.outputs.module-change_files }}'; echo '${{ steps.changed-files.outputs.project-change_files }}'; echo '${{ steps.changed-files.outputs.environment-change_files }}'
plan-all:
runs-on: ubuntu-latest
name: Create terraform plan
needs: [changed-files]
if: ${{ needs.changed-files.outputs.module-change == 'true' }}
# strategy:
# matrix:
# directories: ${{ }}
strategy:
matrix:
directory: ${{ needs.changed-files.outputs.environment-change }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{secrets.INCUBATOR_AWS_ACCESS_KEY_ID}}
Expand All @@ -52,7 +52,7 @@ jobs:
- name: terraform plan
uses: dflook/terraform-plan@v1
with:
path: terraform-incubator/people-depot/dev
path: ${{ matrix.directory }}
plan-project:
runs-on: ubuntu-latest
name: Create terraform plan
Expand Down

0 comments on commit cfc9a14

Please sign in to comment.