-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Add build check to ensure CLI docs are up to date
- Loading branch information
1 parent
9d0af3c
commit 2de7ca9
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,14 @@ jobs: | |
git config --global user.name github-actions | ||
git config --global user.email [email protected] | ||
- name: Check CLI Documentation | ||
shell: bash | ||
run: | | ||
if [[ `git status --porcelain=1 | wc -l` -ne 0 ]]; then | ||
echo "CLI documentation out of date: docs/cli.rst does not match output after running docs/generate_cli_docs.py!" | ||
exit 1 | ||
fi | ||
- name: Generate Docs | ||
run: | | ||
sphinx-build -b html docs build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters