fix is_important .github/workflows for Windows

This commit is contained in:
Paul Gauthier 2024-08-31 07:41:46 -07:00
parent b3d9d0098e
commit 51bf7da8bd

View file

@ -179,9 +179,10 @@ ROOT_IMPORTANT_FILES = [
# Normalize the lists once
NORMALIZED_ROOT_IMPORTANT_FILES = set(os.path.normpath(path) for path in ROOT_IMPORTANT_FILES)
def is_important(file_path):
file_name = os.path.basename(file_path)
dir_name = os.path.dirname(file_path)
dir_name = os.path.normpath(os.path.dirname(file_path))
normalized_path = os.path.normpath(file_path)
# Check for GitHub Actions workflow files