From 992fae7f623ce2102611ea38304a40500fd621ac Mon Sep 17 00:00:00 2001 From: Mark Hamilton Date: Tue, 1 Aug 2023 14:21:46 +0100 Subject: [PATCH] Create validator.yaml --- validator.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 validator.yaml diff --git a/validator.yaml b/validator.yaml new file mode 100644 index 0000000..264d75d --- /dev/null +++ b/validator.yaml @@ -0,0 +1,23 @@ +name: json-yaml-validate +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +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@v3 + + - name: json-yaml-validate + id: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v2.0.0 # replace with the latest version + with: + comment: "true" # enable comment mode