Skip to content

Commit c16254f

Browse files
committed
fix ci
1 parent 1017210 commit c16254f

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/json-lint.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,9 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- name: Set up Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20'
22-
23-
- name: Install jsonlint-cli
24-
run: npm install --global jsonlint-cli
18+
- name: Install jsonlint
19+
run: sudo apt install python3-demjson
2520

2621
- name: Lint repos/*.json
2722
run: |
28-
shopt -s nullglob
29-
files=(repos/*.json)
30-
if [ ${#files[@]} -eq 0 ]; then
31-
echo "No JSON files found under repos/"
32-
exit 0
33-
fi
34-
jsonlint -q "${files[@]}"
23+
jsonlint repos/*.json

0 commit comments

Comments
 (0)