mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Make script not fail if reports/docs directory doesn't exist (#41527)
This commit is contained in:
parent
ba4bd24a9d
commit
b79eab8455
@ -13,10 +13,10 @@ pretty_print_result_of_report() {
|
||||
}
|
||||
|
||||
BUILD_MODE="${1-local}"
|
||||
REPORT_PATH="$(realpath "$(dirname "$0")/../reports/docs/")"
|
||||
BUILD_SCRIPT_PATH="$(realpath "$(dirname "$0")/ci-reference-docs-build.sh")"
|
||||
|
||||
if [ ! -d "$REPORT_PATH" ]; then
|
||||
if [ ! -d "$(realpath "$(dirname "$0")/../reports/docs/")" ]; then
|
||||
echo "reports/docs directory doesn't exist. creating..."
|
||||
# this script needs to be run after the packages have been built and the api-extractor has completed.
|
||||
# shellcheck source=/scripts/ci-reference-docs-build.sh
|
||||
if ! . "$BUILD_SCRIPT_PATH" "$BUILD_MODE";
|
||||
@ -28,6 +28,7 @@ if [ ! -d "$REPORT_PATH" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
REPORT_PATH="$(realpath "$(dirname "$0")/../reports/docs/")"
|
||||
WARNINGS_COUNT="$(find "$REPORT_PATH" -type f -name \*.log -print0 | xargs -0 grep -o "Warning:.*(ae-\|Warning:.*(tsdoc-" | wc -l | xargs)"
|
||||
WARNINGS_COUNT_LIMIT=1212
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user