This commit is contained in:
Tom Hu 2021-06-24 10:56:32 -04:00
parent cf7b8b83b2
commit c921fa8135
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
2 changed files with 23 additions and 20 deletions

View file

@ -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}`);
}
});