From 731ea1f4d0093e58d60af22115b4606a0bc0e9d0 Mon Sep 17 00:00:00 2001 From: oakbrad Date: Tue, 4 Jun 2024 17:43:51 -0700 Subject: [PATCH] #24 Trying different action --- .github/workflows/validate-brew-json.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/validate-brew-json.yml b/.github/workflows/validate-brew-json.yml index 94f9a8b..2c63ab5 100644 --- a/.github/workflows/validate-brew-json.yml +++ b/.github/workflows/validate-brew-json.yml @@ -1,15 +1,19 @@ -name: Validate Homebrew JSON +name: Validate 5eTools Homebrew JSON -on: [pull_request, push] +on: + push: jobs: - verify-json-validation: + validate-config: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v1 - - name: Validate JSON - uses: ScratchAddons/validate-json-action@master - env: - schema: /.github/homebrew-schema.json - jsons: | - "5etools-homebrew/Dungeon Church; Pyora.json" \ No newline at end of file + - name: Checkout repository + uses: actions/checkout@v4 + + - name: validate + uses: ammarlakis/action-ajv@master + with: + schema: .github/homebrew-schema.json + data: 5etools-homebrew/*json + allErrors: true \ No newline at end of file