Gitea actions templates #57
@ -375,7 +375,9 @@ def process_repositories(args, service):
|
||||
actions_yaml_content_html = actions_yaml_template_html.render(**context)
|
||||
actions_yaml_content_pdf = actions_yaml_template_pdf.render(**context)
|
||||
actions_yaml_content_html_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-html-docs.yaml")
|
||||
actions_yaml_content_html_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
actions_yaml_content_pdf_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-pdf-docs.yaml")
|
||||
actions_yaml_content_pdf_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
with open(actions_yaml_content_html_path, "w", encoding="utf-8", newline="") as out:
|
||||
logging.debug(f"Generating {actions_yaml_content_html_path} from template...")
|
||||
out.write(actions_yaml_content_html)
|
||||
|
Reference in New Issue
Block a user