Skip to content
Permalink
Browse files

feat(internal/kokoro): make publish_docs VERSION optional (#2979)

  • Loading branch information
tbpg committed Oct 7, 2020
1 parent 7d5ccde commit 76e35f689cb60bd5db8e14b8c8d367c5902bcb0e
Showing with 7 additions and 3 deletions.
  1. +7 −3 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)

0 comments on commit 76e35f6

Please sign in to comment.