create path
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 18s
Run Tox Check / tox-pep8 (pull_request) Successful in 16s
Updates Opensearch filters / update-opensearch-filters (pull_request) Successful in 10s

This commit is contained in:
2025-10-01 12:19:10 +00:00
parent 3f3443a727
commit acdca0b6eb

View File

@ -375,7 +375,9 @@ def process_repositories(args, service):
actions_yaml_content_html = actions_yaml_template_html.render(**context) actions_yaml_content_html = actions_yaml_template_html.render(**context)
actions_yaml_content_pdf = actions_yaml_template_pdf.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 = 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 = 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: 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...") logging.debug(f"Generating {actions_yaml_content_html_path} from template...")
out.write(actions_yaml_content_html) out.write(actions_yaml_content_html)