diff --git a/internal/kokoro/discogen.sh b/internal/kokoro/discogen.sh new file mode 100755 index 00000000000..0f53c1ffc2c --- /dev/null +++ b/internal/kokoro/discogen.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Copyright 2022 Google LLC. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# Fail on any error +set -eo pipefail + +export GITHUB_ACCESS_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_yoshi-automation-github-key) + +# Display commands being run +set -x + +# cd to project dir on Kokoro instance +cd github/google-api-go-client +export DISCOVERY_DIR=$(pwd) + +go run google.golang.org/api/internal/kokoro/discogen