Skip to content

Commit

Permalink
chore: added extra variables owlbot kokoro configs (#623)
Browse files Browse the repository at this point in the history
* chore: added extra variables owlbot kokoro configs

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2022
1 parent ebcaa5c commit f701bee
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/google-cloud-monitoring/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@

"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.languages.node as node
import os


node.owlbot_main(staging_excludes=["README.md", "package.json"])

# --------------------------------------------------------------------------
# Modify test configs
# --------------------------------------------------------------------------

# add shared environment variables to test configs
s.move(
".kokoro/common_env_vars.cfg",
".kokoro/common.cfg",
merge=lambda src, dst, _, : f"{dst}\n{src}",
)
for path, subdirs, files in os.walk(f".kokoro/continuous"):
for name in files:
if name == "common.cfg":
file_path = os.path.join(path, name)
s.move(
".kokoro/common_env_vars.cfg",
file_path,
merge=lambda src, dst, _, : f"{dst}\n{src}",
)

0 comments on commit f701bee

Please sign in to comment.