Skip to content

Commit

Permalink
Merge pull request #10 from OrRosenblatt/update-usage-example
Browse files Browse the repository at this point in the history
Update usage example in README
  • Loading branch information
OrRosenblatt authored Nov 17, 2019
2 parents 037cbee + 3013ec7 commit a708276
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@ This project uses [`ajv`](https://github.com/epoberezkin/ajv), fast JSON schema
An example `.github/workflows/validate.yml` workflow to run JSON validation on the repository:

```yaml
name: Validate JSON
name: Validate JSONs

on: [pull_request]

jobs:
validate:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
with:
schema: /path/to/schema.json
jsons: /path/to/file.json,/path/to/another/file.json
env:
INPUT_SCHEMA: /path/to/schema.json
INPUT_JSONS: /path/to/file.json,/path/to/another/file.json
```
Expand Down

0 comments on commit a708276

Please sign in to comment.