Skip to content

Commit

Permalink
fix: owlbot post-processor should generate README (#1154)
Browse files Browse the repository at this point in the history
Fixes #1146 
Fixes #1147
  • Loading branch information
chingor13 authored Jul 14, 2021
1 parent e44dc0c commit 387851d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions synthtool/languages/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,11 @@ def common_templates(
kwargs["metadata"] = _common_template_metadata()
templates = gcp.CommonTemplates(template_path=template_path).java_library(**kwargs)

# README.md is now synthesized separately. This prevents synthtool from deleting the
# README as it's no longer generated here.
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
# README as it's no longer generated here.
excludes.append("README.md")

s.copy([templates], excludes=excludes, merge=_merge_common_templates)

Expand Down

0 comments on commit 387851d

Please sign in to comment.