From 1e9afa111accb958fa6f5b2df54d7ab520ca47fe Mon Sep 17 00:00:00 2001 From: Natalia Luzuriaga Date: Wed, 30 Jul 2025 09:37:10 -0700 Subject: [PATCH] Create json-validate.yml --- .github/workflows/json-validate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/json-validate.yml diff --git a/.github/workflows/json-validate.yml b/.github/workflows/json-validate.yml new file mode 100644 index 0000000..95b3cdc --- /dev/null +++ b/.github/workflows/json-validate.yml @@ -0,0 +1,26 @@ +name: json-validate +on: + pull_request: + types: [opened, synchronize] + # Paths can be used to only trigger actions when you have edited checklist files + branches: + - 'main' + paths: + - './schemas' + +permissions: + contents: read + pull-requests: write # enable write permissions for pull request comments + +jobs: + json-yaml-validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: json-yaml-validate + id: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v3.3.2 # replace with the latest version + with: + comment: "true" + json_schema_version: "draft-04"