Skip to content

Commit

Permalink
Removed samples.json from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoabernier authored Feb 13, 2022
1 parent 2b058f4 commit d2762a5
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/merge-sample-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,17 @@ jobs:
path: Docs
- name: Join samples
run: |
jq -s '[.[][]]' ./main/samples/**/assets/sample.json > ./main/samples.json
jq -s '[.[][]]' ./main/samples/**/assets/sample.json > ./Docs/docs/samples.json
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./main/metadata-schema.json
INPUT_JSONS: ./main/samples.json
INPUT_JSONS: ./Docs/docs/samples.json
- name: copy file to gh-pages
uses: canastro/copy-file-action@master
with:
source: "./main/samples.json"
source: "./Docs/docs/samples.json"
target: "./gh-pages/samples.json"
- name: copy file to Docs
uses: canastro/copy-file-action@master
with:
source: "./main/samples.json"
target: "./Docs/docs/samples.json"
- name: Commit updated samples.json
uses: EndBug/add-and-commit@v6
with:
message: 'Updated samples.json'
add: 'samples.json --force'
cwd: './main'
token: ${{ secrets.TOKEN }}
- name: Commit samples.json to gh-pages
uses: EndBug/add-and-commit@v6
with:
Expand Down

0 comments on commit d2762a5

Please sign in to comment.