Repository navigation
68 lines (60 loc) · 1.53 KB
/
Copy pathdocs.yml
File metadata and controls
68 lines (60 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: docs-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-documentation:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Check required documentation
shell: bash
run: |
required_files=(
README.md
LICENSE
SECURITY.md
CHANGELOG.md
CODE_OF_CONDUCT.md
SUPPORT.md
GOVERNANCE.md
NOTICE
more_info/CONTRIBUTING.md
more_info/ROADMAP.md
docs/ARCHITECTURE.md
docs/SECURITY_MODEL.md
docs/INSTALLATION.md
docs/USAGE.md
docs/DEPENDENCIES.md
docs/RELEASE_PROCESS.md
)
failed=0
for file in "${required_files[@]}"; do
if [[ ! -s "$file" ]]; then
echo "Missing or empty required file: $file"
failed=1
fi
done
if (( failed != 0 )); then
exit 1
fi
- name: Check Markdown files for unresolved conflicts
shell: bash
run: |
if git grep -n -E '^(<<<<<<< |>>>>>>> )' -- '*.md'; then
echo "Unresolved merge conflict marker found in Markdown."
exit 1
fi