testing jq approach
This commit is contained in:
parent
08fe3806cc
commit
e80f04886e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue