Skip to content

Commit

Permalink
feat(internal/kokoro): make publish_docs VERSION optional (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbpg committed Oct 7, 2020
1 parent 7d5ccde commit 76e35f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions internal/kokoro/publish_docs.sh
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 76e35f6

Please sign in to comment.