Skip to content

Commit 09b52d4

Browse files
committed
Convert pathlib path to str so it can be serialized
1 parent c243c04 commit 09b52d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def convert_path_to_posix(path: Union[str, Path]) -> str:
162162

163163
def get_resource_url(repo: str, branch: str, path: Path) -> str:
164164
"""Get the URL for a resource in a GitHub repository."""
165-
return f"{GITHUB_RAW_URL}/{repo}/{branch}/{convert_path_to_posix(path)}"
165+
return str(f"{GITHUB_RAW_URL}/{repo}/{branch}/{convert_path_to_posix(path)}")
166166

167167

168168
def update_image_urls(content: str, base_path: Path, repo: str, branch: str) -> str:

0 commit comments

Comments
 (0)