using checkin
This commit is contained in:
parent
02f06470bb
commit
3f7e2b2111
|
@ -38,14 +38,22 @@ jobs:
|
||||||
# - name: Send greeting
|
# - name: Send greeting
|
||||||
# run: echo "Hello ${{ github.event.inputs.name }}"
|
# run: echo "Hello ${{ github.event.inputs.name }}"
|
||||||
|
|
||||||
merge_json:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
name: Example
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Combine json files
|
with:
|
||||||
run: |
|
path: './'
|
||||||
|
- run: |
|
||||||
echo "Merging samples"
|
echo "Merging samples"
|
||||||
find samples/ -name 'sample.json' -path '*/assets/*' -o -name "test*.json" | xargs cat > ./test-samples.json
|
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
|
jq -s '[.[][]]' samples/**/assets/sample.json > test-samplesjq.json
|
||||||
echo "Merged samples"
|
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 }}
|
Loading…
Reference in New Issue