From 02f06470bb1445bd9fc1558e0f1fefcb188752e5 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sat, 12 Feb 2022 18:52:15 -0500 Subject: [PATCH] using find instead --- .github/workflows/merge-sample-json.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/merge-sample-json.yml b/.github/workflows/merge-sample-json.yml index 1f94e5a9c..9eb68982e 100644 --- a/.github/workflows/merge-sample-json.yml +++ b/.github/workflows/merge-sample-json.yml @@ -45,9 +45,7 @@ jobs: - name: Combine json files run: | echo "Merging samples" - echo '::echo::on' - echo '::set-output name=action_echo::enabled' - jq -s '[.[][]]' samples/**/assets/sample.json > test-samples.json - echo '::echo::off' + find samples/ -name 'sample.json' -path '*/assets/*' -o -name "test*.json" | xargs cat > ./test-samples.json + jq -s '[.[][]]' samples/**/assets/sample.json > test-samplesjq.json echo "Merged samples" shell: bash \ No newline at end of file