From 76e35f689cb60bd5db8e14b8c8d367c5902bcb0e Mon Sep 17 00:00:00 2001 From: Tyler Bui-Palsulich <26876514+tbpg@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:20:02 -0400 Subject: [PATCH] feat(internal/kokoro): make publish_docs VERSION optional (#2979) --- internal/kokoro/publish_docs.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/internal/kokoro/publish_docs.sh b/internal/kokoro/publish_docs.sh index 83dc37db16e..f73c8f6652a 100755 --- a/internal/kokoro/publish_docs.sh +++ b/internal/kokoro/publish_docs.sh @@ -19,6 +19,11 @@ set -eo pipefail # Display commands being run. set -x +if [ -z "$MODULE" ] ; then + echo "Must set the MODULE environment variables" + exit 1 +fi + python3 -m pip install --upgrade pip # Workaround for six 1.15 incompatibility issue. python3 -m pip install --use-feature=2020-resolver "gcp-docuploader<2019.0.0" @@ -27,9 +32,8 @@ cd github/google-cloud-go/internal/godocfx go install cd - -if [ -z "$MODULE" ] || [ -z "$VERSION" ] ; then - echo "Must set the MODULE and VERSION environment variables" - exit 1 +if [ -z "$VERSION" ] ; then + VERSION="latest" fi cd $(mktemp -d)