From 6ef71cea360ff113a14477c29e4d6f298394cbb8 Mon Sep 17 00:00:00 2001 From: Keren Trajtenberg Date: Mon, 5 Feb 2024 15:49:11 +0200 Subject: [PATCH] modified github workflow working-dir settings --- .github/workflows/terraform-docs.yml | 7 ++++++- .github/workflows/terraform.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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