From df18ddc242960423e552632b023402282807a25a Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 29 Mar 2024 06:50:47 +0100 Subject: [PATCH] fix(readme-generator/regen_readme_in_batch): generate_READMEs expect a Path object now --- readme_generator/regen_readme_in_batch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme_generator/regen_readme_in_batch.py b/readme_generator/regen_readme_in_batch.py index 431e7a1..de65745 100644 --- a/readme_generator/regen_readme_in_batch.py +++ b/readme_generator/regen_readme_in_batch.py @@ -6,6 +6,7 @@ import asyncio import tempfile from make_readme import generate_READMEs +from pathlib import Path github_webhook_secret = open("github_webhook_secret", "r").read().strip() @@ -40,7 +41,7 @@ async def regen_readme(repository, branch): with tempfile.TemporaryDirectory() as folder: await git(["clone", f"https://{login}:{token}@github.com/{repository}", "--single-branch", "--branch", branch, folder]) - generate_READMEs(folder) + generate_READMEs(Path(folder)) await git(["add", "README*.md"], in_folder=folder) await git(["add", "ALL_README.md"], in_folder=folder)