Only run generate-endpoint-index.py if the GenerateOpenApiDocuments build succeeded, so a failed build can't render docs/endpoint-index.md from a stale/partial v1.json. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
374 B
Bash
Executable File
12 lines
374 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
cd "$(git rev-parse --show-toplevel)" || exit
|
|
REPO_ROOT="$(pwd)"
|
|
|
|
# Only regenerate the endpoint index if the spec build succeeded, so a failed
|
|
# build can't render docs/endpoint-index.md from a stale/partial v1.json.
|
|
(cd ErsatzTV && dotnet build -t:GenerateOpenApiDocuments) || exit
|
|
|
|
cd "$REPO_ROOT" || exit
|
|
python3 scripts/generate-endpoint-index.py
|