cleaned up workflow
This commit is contained in:
parent
55b0474450
commit
8cf2fb843b
|
@ -39,21 +39,19 @@ jobs:
|
||||||
# run: echo "Hello ${{ github.event.inputs.name }}"
|
# run: echo "Hello ${{ github.event.inputs.name }}"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Example
|
name: Merge
|
||||||
|
description: 'Merge all sample.json'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: './'
|
path: './'
|
||||||
- run: |
|
- run: |
|
||||||
echo "Merging samples"
|
jq -s '[.[][]]' samples/**/assets/sample.json > 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
|
|
||||||
echo "Merged samples"
|
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v6
|
- uses: EndBug/add-and-commit@v6
|
||||||
with:
|
with:
|
||||||
message: 'Add the version and date'
|
message: 'Updated samples.json'
|
||||||
add: '*.json --force'
|
add: 'samples.json --force'
|
||||||
cwd: './'
|
cwd: './'
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ secrets.TOKEN }}
|
Loading…
Reference in New Issue