From 97a6590713a97fcf98f708da7cff8a073df337f2 Mon Sep 17 00:00:00 2001 From: Jacob Alheid Date: Wed, 26 Jan 2022 16:01:08 -0800 Subject: [PATCH] feat(gomarkdoc): use embed instead of rewriting entire README --- hooks/golang/gomarkdoc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/golang/gomarkdoc.sh b/hooks/golang/gomarkdoc.sh index 78455f8..e39ac83 100755 --- a/hooks/golang/gomarkdoc.sh +++ b/hooks/golang/gomarkdoc.sh @@ -11,9 +11,9 @@ GITHUB_SERVER_URL="${GITHUB_SERVER_URL:-https://github.com}" # autodetect the GitHub remote URI correctly if [ -n "$GITHUB_REPOSITORY" ]; then echo "DEBUG Using environment repository" - gomarkdoc --output '{{.Dir}}/README.md' -vv \ + gomarkdoc --output '{{.Dir}}/README.md' --verbose \ --repository.url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY%%/}" \ - --repository.default-branch "${GITHUB_DEFAULT_BRANCH:-main}" ./... + --repository.default-branch "${GITHUB_DEFAULT_BRANCH:-main}" --embed ./... else - gomarkdoc --output '{{.Dir}}/README.md' -vv ./... + gomarkdoc --output '{{.Dir}}/README.md' --verbose --embed ./... fi