using checkin

This commit is contained in:
Hugo Bernier 2022-02-12 19:02:52 -05:00 committed by GitHub
parent 02f06470bb
commit 3f7e2b2111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -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: |
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
- uses: EndBug/add-and-commit@v6
with:
message: 'Add the version and date'
add: '*.json --force'
cwd: './'
token: ${{ secrets.TOKEN }}