From b4287f56833bdec840fab9f2350ed2cf3e56a9cb Mon Sep 17 00:00:00 2001 From: Adrian Orive Date: Thu, 19 Nov 2020 11:24:34 +0100 Subject: [PATCH] Duplicate the check run even if we need to re-run the tests Signed-off-by: Adrian Orive --- verify/plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/verify/plugin.go b/verify/plugin.go index ce5813d..a0fd1ef 100644 --- a/verify/plugin.go +++ b/verify/plugin.go @@ -318,7 +318,9 @@ func (p PRPlugin) onSync(env *ActionsEnv) error { // Rerun the tests if they weren't finished if !Finished.Equal(checkRun.GetStatus()) { // Process the PR and submit the results - return p.processAndSubmit(env, checkRun) + if err = p.processAndSubmit(env, checkRun); err != nil { + return err + } } // Create a duplicate for the new commit