fix(api): Skip to next api-docs directory if the current dir doesn't contain a .config.yml OpenAPI config

pull/5870/head
Jason Stirnaman 2025-02-18 15:24:32 -06:00
parent f15d7857a9
commit 235b172734
1 changed files with 3 additions and 2 deletions

View File

@ -174,9 +174,10 @@ function build {
# Get the version API configuration file.
local configPath="$version/.config.yml"
if [ ! -f "$configPath" ]; then
configPath=".config.yml"
# Skip to the next version if the configuration file doesn't exist.
continue
fi
echo "Using config $configPath"
echo "Using config $version $configPath"
# Get the product name from the configuration.
local versionName
versionName=$(yq e '.x-influxdata-product-name' "$configPath")