From ea10395d6b49570f33ebae4309e6bf7572dfbfaa Mon Sep 17 00:00:00 2001 From: Tim Cappalli Date: Wed, 9 Aug 2023 18:17:25 -0400 Subject: [PATCH] GH Action - validate JSON on PR --- .github/workflows/validate-json.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/validate-json.yml diff --git a/.github/workflows/validate-json.yml b/.github/workflows/validate-json.yml new file mode 100644 index 0000000..5a9fafa --- /dev/null +++ b/.github/workflows/validate-json.yml @@ -0,0 +1,20 @@ +name: Validate JSON Schema +on: [pull_request] + +permissions: + contents: read + pull-requests: write + +jobs: + json-yaml-validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: json-yaml-validate + id: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v2.0.0 + with: + mode: "fail" + json_schema: "aaguid.json.schema" + comment: "true"