Merge pull request #57 from knorrium/knorrium/refactor_action
Refactor GHA
This commit is contained in:
commit
06c5a72059
18
.github/workflows/validate-json.yml
vendored
18
.github/workflows/validate-json.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user