diff --git a/.github/workflows/terraform-docs.yml b/.github/workflows/terraform-docs.yml index 17e4fc1..9b99e96 100644 --- a/.github/workflows/terraform-docs.yml +++ b/.github/workflows/terraform-docs.yml @@ -17,6 +17,11 @@ on: jobs: docs: runs-on: ubuntu-latest + strategy: + matrix: + directory: + - 'Terraform/deploy-fsx-ontap/module' + - 'Terraform/deploy-fsx-ontap/standalone-module' steps: - name: Checkout pull request uses: actions/checkout@v3.5.0 @@ -26,7 +31,7 @@ jobs: - name: Render documentation and push changes back to branch uses: terraform-docs/gh-actions@v1.0.0 with: - working-dir: Terraform/* + working-dir: Terraform/${{ matrix.directory }} config-file: ".terraform-docs.yml" output-file: "README.md" output-method: inject diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index b0bccb2..8b9ed55 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -18,9 +18,14 @@ jobs: terraform: name: Terraform runs-on: ubuntu-latest + strategy: + matrix: + directory: + - 'Terraform/deploy-fsx-ontap/module' + - 'Terraform/deploy-fsx-ontap/standalone-module' defaults: run: - working-directory: ./Terraform/deploy-fsx-ontap + working-directory: ${{ matrix.directory }} steps: - name: Checkout pull request