Skip to content

Commit 1ea9c06

Browse files
committed
Validate versioned documentation structure
1 parent 257dda0 commit 1ea9c06

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Validate versioned information architecture
17+
shell: bash
18+
run: |
19+
set -euo pipefail
20+
test -s README.md
21+
test -s docs/README.md
22+
test -s docs/v1/README.md
23+
grep -Fq '1.0.0-draft' docs/v1/README.md
24+
grep -Fq 'corelink_device_id' docs/v1/README.md
25+
if grep -Fq 'API contract repository also has unpopulated' README.md; then
26+
echo "stale API-contract status returned" >&2
27+
exit 1
28+
fi

0 commit comments

Comments
 (0)