Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ const path = require('path');

async function run() {
try {
await exec.exec('sudo apt-get install -y lcov');
try {
await exec.exec('sudo apt-get install -y lcov');
} catch (error) {
core.debug(`Failed to install lcov with sudo, trying without: ${error}`);
await exec.exec('apt-get install -y lcov');
}

const tmpPath = path.resolve(os.tmpdir(), github.context.action);
const coverageFilesPattern = core.getInput('coverage-files');
Expand Down