Skip to content

Commit 3ef1690

Browse files
[CI] Strip strings from filenames in compute_projects.py (#155519)
This can otherwise mess up some of the path detection logic, particularly around ensuring the premerge checks are run when the workflow YAML file is changed.
1 parent 5d54d34 commit 3ef1690

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.ci/compute_projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def get_env_variables(modified_files: list[str], platform: str) -> Set[str]:
333333
current_platform = platform.system()
334334
if len(sys.argv) == 2:
335335
current_platform = sys.argv[1]
336-
env_variables = get_env_variables(sys.stdin.readlines(), current_platform)
336+
changed_files = [line.strip() for line in sys.stdin.readlines()]
337+
env_variables = get_env_variables(changed_files, current_platform)
337338
for env_variable in env_variables:
338339
print(f"{env_variable}='{env_variables[env_variable]}'")

0 commit comments

Comments
 (0)