From b152986fcb58bbfb241d9ae70b612fda1c2f5fb4 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 7 Apr 2020 22:37:54 +0200 Subject: [PATCH] Don't fail bors on skipped builds --- homu/server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homu/server.py b/homu/server.py index b9b382d..4dd2a9c 100644 --- a/homu/server.py +++ b/homu/server.py @@ -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',