Skip to content

Commit

Permalink
Fix false negative issue with ephemeral runner check (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnaneKhan authored Dec 13, 2023
1 parent 8fdc2f8 commit 70dcfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gato/github/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __process_run_log(self, log_content: bytes, run_info: dict):
with zipfile.ZipFile(io.BytesIO(log_content)) as runres:
for zipinfo in runres.infolist():
# TODO use a lambda for this messy logic
if "Run actionscheckout" in zipinfo.filename:
if "checkout" in zipinfo.filename or "Checkout" in zipinfo.filename:
with runres.open(zipinfo) as run_setup:
content = run_setup.read().decode()
if "Cleaning the repository" in content:
Expand Down

0 comments on commit 70dcfcc

Please sign in to comment.