diff --git a/scripts/scripts_utils.py b/scripts/scripts_utils.py index 2ac6b24cb759..cc75ef6620d7 100644 --- a/scripts/scripts_utils.py +++ b/scripts/scripts_utils.py @@ -81,6 +81,8 @@ def _download(url: str, local_path: Path) -> Optional[int]: return int(response.code) with local_path.open("wb") as f: shutil.copyfileobj(response, f) + # Run fsync because of "Text file busy" in GH Actions. + os.fsync(f.fileno()) return None