Skip to content

Commit 1017210

Browse files
committed
up
1 parent 7158902 commit 1017210

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/json-lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: JSON Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint-json:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
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
25+
26+
- name: Lint repos/*.json
27+
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[@]}"

repos/sw.cta-observatory.org.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"name": "Software Repository for CTA hosted at DESY-ZN - Stratum Server at cvmfs-stratum-one.zeuthen.desy.de - Reevrse Proxy at grid-cvmfs-one.desy.de",
2+
"name": "Software Repository for CTA hosted at DESY-ZN",
3+
"details": "Stratum Server at cvmfs-stratum-one.zeuthen.desy.de - Reverse Proxy at grid-cvmfs-one.desy.de",
34
"fqrn": "sw.cta-observatory.org",
45
"url": "http://grid-cvmfs-one.desy.de/cvmfs/"
56
}

0 commit comments

Comments
 (0)