From 23a31d73657647905882c864da014a28144ad4ab Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Mon, 21 Jun 2021 15:35:59 -0700 Subject: [PATCH] fix generate_docs bugs --- hack/generate_docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/generate_docs.sh b/hack/generate_docs.sh index c7ff38be05..e51e70029e 100755 --- a/hack/generate_docs.sh +++ b/hack/generate_docs.sh @@ -36,8 +36,8 @@ config_git() { make generate-docs # If there are changes, open a PR -git diff-index --quiet HEAD -- -if [ $? -gt 0 ]; then +changes=$(git status --porcelain) +if [ "$changes" != "" ]; then install_gh $1 config_git @@ -47,7 +47,7 @@ if [ $? -gt 0 ]; then git add . git commit -m "Update generate-docs" - git remote add minikube-bot https://minikube-bot:$1@github.com/minikube-bot/minikube.git + git remote add minikube-bot https://minikube-bot:$access_token@github.com/minikube-bot/minikube.git git push -u minikube-bot $branch gh pr create --repo kubernetes/minukube --base master --title "Update generate-docs" --body "Committing changes resulting from \`make generate-docs\`" fi