* fix: remove unused attribute types and functions from backup models * fix: update API client references to use sqlserverflexalpha package * fix: update package references to use sqlserverflexalpha and modify user data source model * fix: add sqlserverflexalpha user data source to provider * fix: add sqlserverflexalpha user resource and update related functionality * chore: add stackit_sqlserverflexalpha_user resource and instance_id variable * fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database --------- Co-authored-by: Andre Harms <andre.harms@stackit.cloud> Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
23 lines
606 B
Bash
Executable file
23 lines
606 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright (c) STACKIT
|
|
|
|
|
|
# This script is used to ensure for PRs the docs are up-to-date via the CI pipeline
|
|
# Usage: ./check-docs.sh
|
|
set -eo pipefail
|
|
|
|
ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
|
|
before_hash=$(find docs -type f -exec sha256sum {} \; | sort | sha256sum | awk '{print $1}')
|
|
|
|
# re-generate the docs
|
|
$ROOT_DIR/scripts/tfplugindocs.sh
|
|
|
|
after_hash=$(find docs -type f -exec sha256sum {} \; | sort | sha256sum | awk '{print $1}')
|
|
|
|
if [[ "$before_hash" == "$after_hash" ]]; then
|
|
echo "Docs are up-to-date"
|
|
else
|
|
echo "Changes detected. Docs are *not* up-to-date."
|
|
exit 1
|
|
fi
|