Skip to content

Commit

Permalink
Merge pull request #86 from flip1995/fix_skipped_jobs
Browse files Browse the repository at this point in the history
Don't fail bors on skipped builds
  • Loading branch information
pietroalbini authored Apr 8, 2020
2 parents 4329d1c + b152986 commit 0fd6fd6
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 0fd6fd6

Please sign in to comment.