Skip to content

Commit

Permalink
ignore incomplete workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mas0nd committed Apr 26, 2024
1 parent fffb8b5 commit 4c7148e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gato/github/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ def __process_run_log(self, log_content: bytes, run_info: dict):

if "Image Release: https://github.com/actions/runner-images" in content \
or "Job is about to start running on the hosted runner: GitHub Actions" in content \
or "Job is cancelled before starting" in content:
or "Job is cancelled before starting" in content \
or "Job is about to start" in content_lines[-2]:
# Larger runners will appear to be self-hosted, but
# they will have the image name. Skip if we see this.
# If the log contains "job is about to start running on hosted runner",
# the runner is a Github hosted runner so we can skip it.
continue

index = 0
while index < len(content_lines) and content_lines[index]:
line = content_lines[index]
Expand Down

0 comments on commit 4c7148e

Please sign in to comment.