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

20
dist/index.js vendored
View file

@ -7671,17 +7671,19 @@ var src_core = __nccwpck_require__(2186);
var exec = __nccwpck_require__(1514);
var failCi = src_buildExec().failCi;
exec.exec('bash', ['bash/linux', '-c'])["catch"](function (err) {
exec.exec('bash', ['bash/linux', '-c'])
.then(function () {
exec.exec('codecov-linux')["catch"](function (err) {
if (failCi) {
src_core.setFailed("Codecov failed with the following error: " + err.message);
}
else {
src_core.warning("Codecov warning: " + err.message);
}
});
})["catch"](function (err) {
src_core.setFailed("Codecov failed with the following error: " + err.message);
});
exec.exec('codecov-linux')["catch"](function (err) {
if (failCi) {
src_core.setFailed("Codecov failed with the following error: " + err.message);
}
else {
src_core.warning("Codecov warning: " + err.message);
}
});
})();

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