Skip to content

Commit

Permalink
chore: improve CRD docs generation script output (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mowies authored Mar 30, 2023
1 parent b33b4f4 commit b27adf1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/generate-crd-docs/generate-crd-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ RENDERER='markdown'
RENDERER_CONFIG_FILE='.github/scripts/generate-crd-docs/crd-docs-generator-config.yaml'

echo "Checking if code generator tool is installed..."
test -s crd-ref-docs || go install github.com/elastic/crd-ref-docs@${GENERATOR_VERSION}
if ! test -s crd-ref-docs; then
echo "Docs generator is not installed, installing now..."
go install github.com/elastic/crd-ref-docs@${GENERATOR_VERSION}
else
echo "Docs generator is installed, continuing..."
fi

echo "Running CRD docs auto-generator..."

Expand Down

0 comments on commit b27adf1

Please sign in to comment.