From 4a4f63039c48ba31312092ee0eca358b406532c2 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Wed, 17 Jan 2024 19:54:11 -0500 Subject: [PATCH] Fix default `REVIEW_FILES` in split workflow post The default value was left a string when they were converted to `pathlib.Path` this causes a `AttributeError: 'str' object has no attribute 'exists'` --- post/clang_tidy_review/clang_tidy_review/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post/clang_tidy_review/clang_tidy_review/post.py b/post/clang_tidy_review/clang_tidy_review/post.py index 78d306e..8996f58 100755 --- a/post/clang_tidy_review/clang_tidy_review/post.py +++ b/post/clang_tidy_review/clang_tidy_review/post.py @@ -60,7 +60,7 @@ def main() -> int: metavar="REVIEW_FILES", type=pathlib.Path, nargs="*", - default=[REVIEW_FILE], + default=[pathlib.Path(REVIEW_FILE)], help="Split workflow review results", )