Просмотр исходного кода

chore: test e2e dynamic check

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner 4 лет назад
Родитель
Сommit
77cbdff46a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/e2e-managed.yml

+ 1 - 1
.github/workflows/e2e-managed.yml

@@ -73,7 +73,7 @@ jobs:
           const check = checks.check_runs.filter(c => c.name === job_name);
           const check = checks.check_runs.filter(c => c.name === job_name);
           console.log("\n\nPR Filtered CHECK: " + check)
           console.log("\n\nPR Filtered CHECK: " + check)
           console.log(check)
           console.log(check)
-          if(check){
+          if(check && check.length > 0){
             const { data: result } = await github.checks.update({
             const { data: result } = await github.checks.update({
               ...context.repo,
               ...context.repo,
               check_run_id: check[0].id,
               check_run_id: check[0].id,