Skip to content

Commit

Permalink
ci: Cancel build if there are no changes in the docs directory (#1968)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyujin Cho <kyujin.cho@lablup.com>
  • Loading branch information
Yaminyam and kyujin-cho committed Mar 29, 2024
1 parent 568ee49 commit d7d7b76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ build:
python: "3.11"
jobs:
post_checkout:
# Skip the build if there is no docs label
- scripts/check-docs-label.sh
# Skip building the documentation if there are no changes in the docs/ directory
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml;
then
exit 183;
fi
pre_build:
# Auto-generate REST API reference
- PYTHONPATH="src" python -m ai.backend.manager.openapi -o docs/manager/rest-reference/openapi.json
Expand Down

0 comments on commit d7d7b76

Please sign in to comment.