From 14d6bf5c3ed0231cef65179862f964dd5bfae9a6 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:47:09 -0700 Subject: [PATCH] chore: add a script that invoke regen (#1432) This will be called from a cron job. Script should land before backing config. Related cl: 427492527 --- internal/kokoro/discogen.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 internal/kokoro/discogen.sh 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