Skip to content

Commit

Permalink
feat: try to make the job fail if warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
theodu committed Sep 28, 2023
1 parent 6dc7b70 commit b273e56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,12 @@ jobs:
pip install -e ".[dev]"
- name: Build
run: mkdocs build
run: |
mkdocs build | tee doc-build.log
if grep -q "WARNING" doc-build.log; then
echo "::error::Documentation build completed with warnings"
exit 1
else
echo "Documentation build completed successfully"
fi

0 comments on commit b273e56

Please sign in to comment.