Skip to content

Commit

Permalink
Don't fail bors on skipped builds
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Apr 7, 2020
1 parent 4329d1c commit b152986
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ def fail(err):
return 'OK'
if info['check_run']['conclusion'] is None:
return 'OK'
# GHA marks jobs as skipped, if they are not run due to the job
# condition. This prevents bors from failing because of these jobs.
if info['check_run']['conclusion'] == 'skipped':
return 'OK'

report_build_res(
info['check_run']['conclusion'] == 'success',
Expand Down

0 comments on commit b152986

Please sign in to comment.