Skip to content

Commit 62ee47b

Browse files
committed
Refactor GHA
1 parent fb21876 commit 62ee47b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/validate-json.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ jobs:
1111
json_validator:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: json-syntax-check
16-
uses: limitusus/json-syntax-check@v1
17-
with:
18-
pattern: "\\.json$"
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Check for duplicates
18+
run : |
19+
sh dupes.sh
20+
21+
- name: Check JSON syntax
22+
run: |
23+
if ! jq empty pools-v2.json; then
24+
echo "JSON syntax check failed"
25+
exit 1
26+
fi

0 commit comments

Comments
 (0)