Skip to content

Commit

Permalink
chore: add a script that invoke regen (#1432)
Browse files Browse the repository at this point in the history
This will be called from a cron job. Script should land before
backing config. Related cl: 427492527
  • Loading branch information
codyoss committed Feb 9, 2022
1 parent ef89845 commit 14d6bf5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 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

0 comments on commit 14d6bf5

Please sign in to comment.