diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 135d16b..5b11807 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ test_auto_update: - apk update - apk upgrade - apk add --no-cache bash git grep coreutils curl - - curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.4.0-linux-amd | head -n 1 | cut -d '"' -f 2)" + - curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.6.0-linux-amd | head -n 1 | cut -d '"' -f 2)" - chmod +x /usr/local/bin/terraform-docs - ./scripts/auto_update.sh ./ - git status diff --git a/scripts/02_update_readme.sh b/scripts/02_update_readme.sh index 020f149..66a456a 100755 --- a/scripts/02_update_readme.sh +++ b/scripts/02_update_readme.sh @@ -91,7 +91,7 @@ EOF done IFS=$SAVEIFS # auto generate terraform docs (inputs and outputs) - terraform-docs --with-aggregate-type-defaults md ./ >> README.md + terraform-docs --with-aggregate-type-defaults md table ./ >> README.md # if README does not exist if [[ $EXIST -eq 0 ]]; then # Simply add empty documentation section