mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-12 17:10:05 +00:00
Await
This commit is contained in:
parent
cf7b8b83b2
commit
c921fa8135
2 changed files with 23 additions and 20 deletions
23
src/index.ts
23
src/index.ts
|
|
@ -6,19 +6,20 @@ import buildExec from './buildExec';
|
|||
const {failCi} = buildExec();
|
||||
|
||||
exec.exec('bash', ['bash/linux', '-c'])
|
||||
.then(() => {
|
||||
exec.exec('codecov-linux')
|
||||
.catch((err) => {
|
||||
if (failCi) {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`,
|
||||
);
|
||||
} else {
|
||||
core.warning(`Codecov warning: ${err.message}`);
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`,
|
||||
);
|
||||
});
|
||||
|
||||
exec.exec('codecov-linux')
|
||||
.catch((err) => {
|
||||
if (failCi) {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`,
|
||||
);
|
||||
} else {
|
||||
core.warning(`Codecov warning: ${err.message}`);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue