Skip to content

Commit 76e35f6

Browse files
authored
feat(internal/kokoro): make publish_docs VERSION optional (#2979)
1 parent 7d5ccde commit 76e35f6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

internal/kokoro/publish_docs.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ set -eo pipefail
1919
# Display commands being run.
2020
set -x
2121

22+
if [ -z "$MODULE" ] ; then
23+
echo "Must set the MODULE environment variables"
24+
exit 1
25+
fi
26+
2227
python3 -m pip install --upgrade pip
2328
# Workaround for six 1.15 incompatibility issue.
2429
python3 -m pip install --use-feature=2020-resolver "gcp-docuploader<2019.0.0"
@@ -27,9 +32,8 @@ cd github/google-cloud-go/internal/godocfx
2732
go install
2833
cd -
2934

30-
if [ -z "$MODULE" ] || [ -z "$VERSION" ] ; then
31-
echo "Must set the MODULE and VERSION environment variables"
32-
exit 1
35+
if [ -z "$VERSION" ] ; then
36+
VERSION="latest"
3337
fi
3438

3539
cd $(mktemp -d)

0 commit comments

Comments
 (0)