Skip to content

Commit

Permalink
feat(gomarkdoc): use embed instead of rewriting entire README
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu authored and greenkiwi committed Jan 27, 2022
1 parent a2cea74 commit 97a6590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/golang/gomarkdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 97a6590

Please sign in to comment.