[GitHub Actions] Handle subtrees with overlapping names (#327)

This commit is contained in:
Joseph Macaranas
2025-08-12 21:38:51 -04:00
zatwierdzone przez GitHub
rodzic 6f09eb3418
commit b36c1ab6ab
@@ -208,7 +208,7 @@ def main(argv: Optional[List[str]] = None) -> None:
merge_sha = client.get_squash_merge_commit(args.repo, args.pr)
logger.debug(f"Merge commit for PR #{args.pr} in {args.repo}: {merge_sha}")
for entry in relevant_subtrees:
prefix = f"{entry.category}/{entry.name}"
prefix = f"{entry.category}/{entry.name}/"
logger.debug(f"Processing subtree {prefix}")
with tempfile.TemporaryDirectory() as tmpdir:
patch_file = Path(tmpdir) / f"{entry.name}.patch"