Skip to content

Commit 0fd6fd6

Browse files
authored
Merge pull request #86 from flip1995/fix_skipped_jobs
Don't fail bors on skipped builds
2 parents 4329d1c + b152986 commit 0fd6fd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

homu/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,10 @@ def fail(err):
622622
return 'OK'
623623
if info['check_run']['conclusion'] is None:
624624
return 'OK'
625+
# GHA marks jobs as skipped, if they are not run due to the job
626+
# condition. This prevents bors from failing because of these jobs.
627+
if info['check_run']['conclusion'] == 'skipped':
628+
return 'OK'
625629

626630
report_build_res(
627631
info['check_run']['conclusion'] == 'success',

0 commit comments

Comments
 (0)