Skip to content

Commit

Permalink
Merge pull request #317 from tekktrik/dev/fix-no-actions-reporting
Browse files Browse the repository at this point in the history
Fix validator if no CI runs
  • Loading branch information
tekktrik committed Nov 14, 2022
2 parents 98e9810 + 292672b commit a295390
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions adabot/lib/circuitpython_library_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,8 +1261,13 @@ def validate_actions_state(self, repo):
except pygithub.GithubException: # This can probably be tightened later
# No workflows or runs yet
return []
if workflow_runs[0].conclusion != "success":
return [ERROR_CI_BUILD]
try:
if workflow_runs[0].conclusion != "success":
return [ERROR_CI_BUILD]
except IndexError:
# The CI hasn't run yet, so empty list of workflow runs returned
# This doesn't indicate a failure, so skip it
pass
return []
except pygithub.RateLimitExceededException:
core_rate_limit_reset = GH_INTERFACE.get_rate_limit().core.reset
Expand Down

0 comments on commit a295390

Please sign in to comment.