From aabfe7e1b48786eb26aecd1c38f8a7ea2f8239df Mon Sep 17 00:00:00 2001 From: Florian Heilmann Date: Mon, 8 Jan 2024 18:43:20 +0100 Subject: [PATCH] fix: Fix bug in sparse checkout helper, pr_helper log output --- voron_toolkit/voronuser_utils/pr_helper.py | 2 +- voron_toolkit/voronuser_utils/sparse_checkout_helper.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/voron_toolkit/voronuser_utils/pr_helper.py b/voron_toolkit/voronuser_utils/pr_helper.py index 133f47d..255beac 100644 --- a/voron_toolkit/voronuser_utils/pr_helper.py +++ b/voron_toolkit/voronuser_utils/pr_helper.py @@ -159,8 +159,8 @@ def _update_labels_on_pull_request(self: Self, pr_number: int) -> None: ) labels_to_preserve: list[str] = [label for label in labels_on_pr if label not in LABELS_CI_ALL] - logger.info("Labels: {}", labels_to_preserve) updated_labels: list[str] = [label, *labels_to_preserve] + logger.info("Labels: {}", updated_labels) GithubActionHelper.set_labels_on_pull_request( repo=self.github_repository, pull_request_number=pr_number, diff --git a/voron_toolkit/voronuser_utils/sparse_checkout_helper.py b/voron_toolkit/voronuser_utils/sparse_checkout_helper.py index 90b98cb..7a5f318 100644 --- a/voron_toolkit/voronuser_utils/sparse_checkout_helper.py +++ b/voron_toolkit/voronuser_utils/sparse_checkout_helper.py @@ -52,6 +52,7 @@ def run(self: Self) -> None: logger.success("Added pattern '{}' to sparse_checkout_patterns", pattern) self.gh_helper.set_output_multiline(output={"SPARSE_CHECKOUT_HELPER_OUTPUT": list(sparse_checkout_patterns)}) + self.gh_helper.write_outputs() def main() -> None: