mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-28 08:43:26 +00:00
07e1645dcc
* Added test for ensuring docs are always appropriately updated * Updated docs
13 lines
321 B
Bash
Executable file
13 lines
321 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
pushd "${BUILD_WORKSPACE_DIRECTORY}" &> /dev/null
|
|
bazel run //:generate_docs
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git status
|
|
echo '/docs is out of date. Please run `bazel run //:generate_docs` from that directory and commit the results' >&2
|
|
exit 1
|
|
fi
|
|
popd &> /dev/null
|