From 8cf2fb843b95868e07c012681e422d448d19ece0 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sat, 12 Feb 2022 19:11:58 -0500 Subject: [PATCH] cleaned up workflow --- .github/workflows/merge-sample-json.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/merge-sample-json.yml b/.github/workflows/merge-sample-json.yml index 2589be40e..1e4491940 100644 --- a/.github/workflows/merge-sample-json.yml +++ b/.github/workflows/merge-sample-json.yml @@ -39,21 +39,19 @@ jobs: # run: echo "Hello ${{ github.event.inputs.name }}" build: - name: Example + name: Merge + description: 'Merge all sample.json' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: './' - run: | - echo "Merging samples" - 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" + jq -s '[.[][]]' samples/**/assets/sample.json > samples.json - uses: EndBug/add-and-commit@v6 with: - message: 'Add the version and date' - add: '*.json --force' + message: 'Updated samples.json' + add: 'samples.json --force' cwd: './' token: ${{ secrets.TOKEN }} \ No newline at end of file