Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work... says Missing JSONS input #9

Open
DmitriyAlergant-T1A-Rogers opened this issue Feb 9, 2023 · 2 comments
Open

Doesn't work... says Missing JSONS input #9

DmitriyAlergant-T1A-Rogers opened this issue Feb 9, 2023 · 2 comments

Comments

@DmitriyAlergant-T1A-Rogers

I've started with the original action (OrRosenblatt) and it works, though missing glob support.

The configuration is very simple (no globs, yet) - and it works.

name: Validate JSONs

on: [pull_request]

jobs:
  verify-json-validation:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Validate JSON
        uses: docker://orrosenblatt/validate-json-action:latest
        env:
          INPUT_SCHEMA: schema.json
          INPUT_JSONS: /jsons/test.json

I'm replacing "uses" with nhalstead/[email protected] with no other changes, and it stops working - fails with "Missing JSONS input" error. What am I doing wrong?

@nhalstead
Copy link
Owner

Hi @DmitriyAlergant-T1A-Rogers thank you for your paitence, I didn't get a notification of this issue.

You can see the example in the Readme.md.

@SchoolGuy
Copy link

@DmitriyAlergant-T1A-Rogers What you probably want is the following:

name: Validate JSONs

on: [pull_request]

jobs:
  verify-json-validation:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Validate JSON
        uses: docker://orrosenblatt/validate-json-action:latest
        with:
          schema: schema.json
          jsons: /jsons/test.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants