mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
Error if sync.py not found
This commit is contained in:
@@ -68,8 +68,7 @@ def update_sync_py(sync_py_path: str, action_versions: Dict[str, str]) -> bool:
|
||||
True if file was modified, False otherwise
|
||||
"""
|
||||
if not os.path.exists(sync_py_path):
|
||||
print(f"Warning: {sync_py_path} not found")
|
||||
return False
|
||||
raise FileNotFoundError(f"Could not find {sync_py_path}")
|
||||
|
||||
with open(sync_py_path, 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
Reference in New Issue
Block a user