From 533cd4bb7b265c4942521b86cdfb35a320806921 Mon Sep 17 00:00:00 2001 From: Cameron Showalter Date: Wed, 31 Jul 2024 15:41:10 -0800 Subject: [PATCH] Changed how I get yaml files from the examples dir --- .github/workflows/cdk-synth-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cdk-synth-examples.yml b/.github/workflows/cdk-synth-examples.yml index 3386a5d..98ec463 100644 --- a/.github/workflows/cdk-synth-examples.yml +++ b/.github/workflows/cdk-synth-examples.yml @@ -14,7 +14,7 @@ jobs: - name: Setup matrix id: setup-matrix run: | - file_list=$(ls Examples/*.yaml Examples/*.yml) + file_list=$(find ./Examples/ -regextype egrep -regex '.*ya?ml$') json_list=$(echo $file_list | jq --raw-input --compact-output 'split(" ")') echo "example-config-files=$json_list" >> "$GITHUB_OUTPUT" @@ -24,7 +24,7 @@ jobs: - setup-matrix strategy: matrix: - example-config: ${{fromJson(needs.setup-matrix.outputs.example-config-files)}} + example-config: ${{ fromJson(needs.setup-matrix.outputs.matrix) }} steps: - uses: actions/checkout@v4