testing jq approach

This commit is contained in:
Hugo Bernier 2022-02-12 17:21:35 -05:00 committed by GitHub
parent 08fe3806cc
commit e80f04886e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -41,8 +41,11 @@ jobs:
merge_json:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run script file
run: |
find samples/ -name 'sample.json' -exec cat {} \; > test-samples.json
shell: bash
# - uses: actions/checkout@v2
# - name: Run script file
# run: |
# find samples/ -name 'sample.json' -exec cat {} \; > test-samples.json
# shell: bash
uses: sergeysova/jq-action@v2
with:
cmd: jq -s '[.[][]]' samples/**/assets/sample.json > test-samples.json