diff --git a/.github/workflows/merge-sample-json.yml b/.github/workflows/merge-sample-json.yml index 9eb68982e..b05a325e5 100644 --- a/.github/workflows/merge-sample-json.yml +++ b/.github/workflows/merge-sample-json.yml @@ -38,14 +38,22 @@ jobs: # - name: Send greeting # run: echo "Hello ${{ github.event.inputs.name }}" - merge_json: - runs-on: ubuntu-20.04 + build: + name: Example + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Combine json files - run: | + - 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" - shell: bash \ No newline at end of file + + - uses: EndBug/add-and-commit@v6 + with: + message: 'Add the version and date' + add: '*.json --force' + cwd: './' + token: ${{ secrets.TOKEN }} \ No newline at end of file