We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be333a commit d0376a2Copy full SHA for d0376a2
1 file changed
.github/workflows/build-docs.yml
@@ -14,6 +14,7 @@ on:
14
paths:
15
- "docs/**"
16
- "mkdocs.yml"
17
+ - ".github/workflows/build-docs.yml"
18
19
jobs:
20
build:
@@ -33,4 +34,13 @@ jobs:
33
34
run: uv sync --group doc
35
36
- name: Build docs
- run: uv run zensical build -f mkdocs.yml --clean
37
+ run: |
38
+ set -euo pipefail
39
+ # Run zensical and capture output, fail if command exits non-zero
40
+ uv run zensical build -f mkdocs.yml --clean 2>&1 | tee docs_build.log
41
+ # If output contains common error indicators, fail the step.
42
+ if grep -Ei "\b(error|failed|traceback|exception)\b" docs_build.log >/dev/null; then
43
+ echo "Documentation build produced errors; failing workflow."
44
+ tail -n 200 docs_build.log
45
+ exit 1
46
+ fi
0 commit comments