Skip to content

Commit

Permalink
fix: Fix inverted if statement in pr post processing
Browse files Browse the repository at this point in the history
  • Loading branch information
FHeilmann committed Jan 4, 2024
1 parent 9cc075b commit c0833ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions voron_toolkit/voronuser_utils/pr_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ def run(self: Self) -> None:
)

# Check if the artifact directory is empty, this might happen when the parent workflow did not execute any checks
if any(self.tmp_path.iterdir()):
logger.warning("Artifact {} for run_id {} is empty!", self.artifact_name, self.workflow_run_id)
if not any(self.tmp_path.iterdir()):
logger.warning(
"Result folder {} for run_id {} is empty! This may be due to a missing artifact or a skipped workflow run!",
self.artifact_name,
self.workflow_run_id,
)
return

pr_number: int = self._get_pr_number()
Expand Down

0 comments on commit c0833ec

Please sign in to comment.