mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-13 01:20:06 +00:00
await
This commit is contained in:
parent
da5e21fd61
commit
d686463092
2 changed files with 27 additions and 11 deletions
16
src/index.ts
16
src/index.ts
|
|
@ -31,10 +31,12 @@ console.log(fs.readdirSync(__dirname));
|
|||
console.log('files');
|
||||
console.log(__dirname);
|
||||
|
||||
exec
|
||||
.exec(filename)
|
||||
.catch((err) => {
|
||||
core.setFailed(
|
||||
`Codecov: Could not properly execute uploader binary: ${err.message}`,
|
||||
);
|
||||
});
|
||||
(async () => {
|
||||
try {
|
||||
await exec.exec(filename);
|
||||
} catch (err) {
|
||||
core.setFailed(
|
||||
`Codecov: Could not properly execute uploader binary: ${err.message}`,
|
||||
);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue