From 3013ec79da7c33743eebe8f821a429f5232b0c87 Mon Sep 17 00:00:00 2001 From: Or Rosenblatt Date: Sun, 17 Nov 2019 04:09:59 +0200 Subject: [PATCH] Update usage example in README --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a3185e78..6916f5d7 100644 --- a/README.md +++ b/README.md @@ -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 ```