We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e44dc0c commit 387851dCopy full SHA for 387851d
1 file changed
synthtool/languages/java.py
@@ -465,9 +465,11 @@ def common_templates(
465
kwargs["metadata"] = _common_template_metadata()
466
templates = gcp.CommonTemplates(template_path=template_path).java_library(**kwargs)
467
468
- # README.md is now synthesized separately. This prevents synthtool from deleting the
469
- # README as it's no longer generated here.
470
- excludes.append("README.md")
+ # skip README generation on Kokoro (autosynth)
+ if os.environ.get("KOKORO_ROOT") is not None:
+ # README.md is now synthesized separately. This prevents synthtool from deleting the
471
+ # README as it's no longer generated here.
472
+ excludes.append("README.md")
473
474
s.copy([templates], excludes=excludes, merge=_merge_common_templates)
475
0 commit comments