Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 13m58s
CI Workflow / CI run build and linting (pull_request) Failing after 13m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 21m5s
18 lines
479 B
Bash
Executable file
18 lines
479 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Pre-requisites: tfplugindocs
|
|
set -eo pipefail
|
|
|
|
ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
EXAMPLES_DIR="${ROOT_DIR}/examples"
|
|
PROVIDER_NAME="stackitprivatepreview"
|
|
|
|
# Create a new empty directory for the docs
|
|
if [ -d ${ROOT_DIR}/docs ]; then
|
|
rm -rf ${ROOT_DIR}/docs
|
|
fi
|
|
mkdir -p ${ROOT_DIR}/docs
|
|
|
|
echo ">> Generating documentation"
|
|
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate \
|
|
--provider-name "stackitprivatepreview"
|