From e80f04886ee93a0c75346afdefc77485235e9f1b Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sat, 12 Feb 2022 17:21:35 -0500 Subject: [PATCH] testing jq approach --- .github/workflows/merge-sample-json.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/merge-sample-json.yml b/.github/workflows/merge-sample-json.yml index 2ac007a3e..b2ee1e65f 100644 --- a/.github/workflows/merge-sample-json.yml +++ b/.github/workflows/merge-sample-json.yml @@ -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