From 62ee47b2698186a663526ca4fd250e298fbf39f0 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Fri, 10 May 2024 09:46:04 -0700 Subject: [PATCH] Refactor GHA --- .github/workflows/validate-json.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validate-json.yml b/.github/workflows/validate-json.yml index 2894c9c..72ccc75 100644 --- a/.github/workflows/validate-json.yml +++ b/.github/workflows/validate-json.yml @@ -11,8 +11,16 @@ jobs: json_validator: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: json-syntax-check - uses: limitusus/json-syntax-check@v1 - with: - pattern: "\\.json$" + - name: Checkout + uses: actions/checkout@v2 + + - name: Check for duplicates + run : | + sh dupes.sh + + - name: Check JSON syntax + run: | + if ! jq empty pools-v2.json; then + echo "JSON syntax check failed" + exit 1 + fi