Skip to content

Commit

Permalink
Update validate-json.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tommadness authored Jul 9, 2024
1 parent 01f2ed3 commit 142c22f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/validate-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
# Check if the file exists
if [ -f ./UIRes/bannedplugin.json ]; then
# Validate the JSON file
cat ./UIRes/bannedplugin.json | jq . > /dev/null
cat ./UIRes/bannedplugin.json | jq group_by(.) | map(select(length>1) | .[0] > /dev/null
echo $?
if [ $? -eq 0 ]; then
echo "JSON file is valid"
else
Expand Down

0 comments on commit 142c22f

Please sign in to comment.