Skip to content

Commit

Permalink
fix(readme-generator/regen_readme_in_batch): generate_READMEs expect …
Browse files Browse the repository at this point in the history
…a Path object now
  • Loading branch information
Psycojoker committed Mar 29, 2024
1 parent 750a92f commit cd0d4ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/readme_generator/regen_readme_in_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import tempfile

from make_readme import generate_READMEs
from pathlib import Path

github_webhook_secret = open("github_webhook_secret", "r").read().strip()

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cd0d4ae

Please sign in to comment.