mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
add team json github workflow checker (#1656)
This commit is contained in:
parent
d83333580d
commit
0088e3a557
1 changed files with 23 additions and 0 deletions
23
.github/workflows/validate-team-json.yml
vendored
Normal file
23
.github/workflows/validate-team-json.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Validate Team JSON
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'public/team.json'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'public/team.json'
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: Validate team.json
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Validate JSON format
|
||||
run: |
|
||||
if ! jq empty public/team.json 2>/dev/null; then
|
||||
echo "Error: team.json is not valid JSON"
|
||||
exit 1
|
||||
fi
|
||||
echo "✓ team.json is valid JSON"
|
||||
Loading…
Add table
Reference in a new issue