Skip to content

Commit 235b172

Browse files
committed
fix(api): Skip to next api-docs directory if the current dir doesn't contain a .config.yml OpenAPI config
1 parent f15d785 commit 235b172

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api-docs/generate-api-docs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ function build {
174174
# Get the version API configuration file.
175175
local configPath="$version/.config.yml"
176176
if [ ! -f "$configPath" ]; then
177-
configPath=".config.yml"
177+
# Skip to the next version if the configuration file doesn't exist.
178+
continue
178179
fi
179-
echo "Using config $configPath"
180+
echo "Using config $version $configPath"
180181
# Get the product name from the configuration.
181182
local versionName
182183
versionName=$(yq e '.x-influxdata-product-name' "$configPath")

0 commit comments

Comments
 (0)