Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit b922a6e

Browse files
committed
ci: docs: Check that docs directory was updated
Fixes: #436 Signed-off-by: John Andersen <[email protected]>
1 parent 511ab20 commit b922a6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.ci/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ function run_docs() {
150150
# Doctests
151151
./scripts/doctest.sh
152152

153+
# Fail if there are any changes to the Git repo
154+
changes=$(git status --porcelain | wc -l)
155+
if [ "$changes" -ne 0 ]; then
156+
echo "Running docs.py resulted in changes to the Git repo" >&2
157+
echo "Need to run ./scripts/docs.sh and commit changes" >&2
158+
exit 1
159+
fi
160+
153161
# Make master docs
154162
master_docs="$(mktemp -d)"
155163
TEMP_DIRS+=("${master_docs}")

0 commit comments

Comments
 (0)