diff --git a/readme_generator/webhook.py b/readme_generator/webhook.py index 9871b2d..0795f1b 100755 --- a/readme_generator/webhook.py +++ b/readme_generator/webhook.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import asyncio +from pathlib import Path import hashlib import hmac import os @@ -90,7 +91,7 @@ async def on_push(request): folder, ] ) - generate_READMEs(folder) + generate_READMEs(Path(folder)) await git(["add", "README*.md"], in_folder=folder)