From fa2ce3d5e984e56b197b0a587b6060090a3c8962 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Thu, 3 Dec 2020 21:33:16 +0200 Subject: [PATCH] ci: avoid updating LiveStream lines --- .github/actions/update-badge/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/update-badge/index.js b/.github/actions/update-badge/index.js index 487199e1..7d34965a 100644 --- a/.github/actions/update-badge/index.js +++ b/.github/actions/update-badge/index.js @@ -51,7 +51,8 @@ function extractRepositories(lines) { } else if (collect) { const idx1 = line.indexOf('[') const idx2 = line.indexOf(']') - if (idx1 >= 0 && idx2 >= 0) { + const idx3 = line.indexOf('/') + if (idx1 >= 0 && idx2 >= 0 && idx3 > 0) { repos.push({ index, repoStr: line.slice(idx1 + 1, idx2)