File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2020GITHUB_ACTIONS = os .getenv ("GITHUB_ACTIONS" ) == "true"
2121
2222
23- def print_notice (file_path : Path , message : str ) -> None :
23+ def print_notice (file_path : str | Path , message : str ) -> None :
2424 if GITHUB_ACTIONS :
2525 message = f"::notice file={ file_path } ::{ message } "
2626 print (message , end = "\n \n " )
2727
2828
29- def print_error (file_path : Path , message : str ) -> None :
29+ def print_error (file_path : str | Path , message : str ) -> None :
3030 if GITHUB_ACTIONS :
3131 message = f"::error file={ file_path } ::{ message } "
3232 print (message , end = "\n \n " )
@@ -40,7 +40,7 @@ def verify_wheel(package_name: str) -> bool:
4040 for p in package_paths :
4141 print_error (p , f"Found more than one wheel for package { package_name } ." )
4242 else :
43- print_error (Path () , f"Could not find a { package_name } wheel on disk." )
43+ print_error ("" , f"Could not find a { package_name } wheel on disk." )
4444 return False
4545
4646 package_path = package_paths [0 ]
You can’t perform that action at this time.
0 commit comments