Gitea actions templates #57

Merged
sgode merged 3 commits from actions into main 2025-10-01 12:25:56 +00:00
3 changed files with 87 additions and 0 deletions
Showing only changes of commit acdca0b6eb - Show all commits

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)