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