From 97dd78dddacc16eb68d27efe65930258e19d2d89 Mon Sep 17 00:00:00 2001 From: Steve Browne <77756827+jbrownsw@users.noreply.github.com> Date: Thu, 1 Jul 2021 08:56:11 -0400 Subject: [PATCH] Uses -y to prevent the runner from hanging if lcov isn't installed --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 6e981cdf..36448f23 100644 --- a/src/main.js +++ b/src/main.js @@ -9,7 +9,7 @@ const path = require('path'); async function run() { try { - await exec.exec('sudo apt-get install lcov'); + await exec.exec('sudo apt-get install -y lcov'); const tmpPath = path.resolve(os.tmpdir(), github.context.action); const coverageFilesPattern = core.getInput('coverage-files'); @@ -178,4 +178,4 @@ async function detail(coverageFile, octokit) { return '\n ' + lines.join('\n '); } -run(); \ No newline at end of file +run();