using find instead

This commit is contained in:
Hugo Bernier 2022-02-12 18:52:15 -05:00 committed by GitHub
parent 5e83075587
commit 02f06470bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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