mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-17 00:11:44 +00:00
Await
This commit is contained in:
parent
cf7b8b83b2
commit
c921fa8135
2 changed files with 23 additions and 20 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
|
@ -7671,9 +7671,8 @@ var src_core = __nccwpck_require__(2186);
|
||||||
var exec = __nccwpck_require__(1514);
|
var exec = __nccwpck_require__(1514);
|
||||||
|
|
||||||
var failCi = src_buildExec().failCi;
|
var failCi = src_buildExec().failCi;
|
||||||
exec.exec('bash', ['bash/linux', '-c'])["catch"](function (err) {
|
exec.exec('bash', ['bash/linux', '-c'])
|
||||||
src_core.setFailed("Codecov failed with the following error: " + err.message);
|
.then(function () {
|
||||||
});
|
|
||||||
exec.exec('codecov-linux')["catch"](function (err) {
|
exec.exec('codecov-linux')["catch"](function (err) {
|
||||||
if (failCi) {
|
if (failCi) {
|
||||||
src_core.setFailed("Codecov failed with the following error: " + err.message);
|
src_core.setFailed("Codecov failed with the following error: " + err.message);
|
||||||
|
|
@ -7682,6 +7681,9 @@ exec.exec('codecov-linux')["catch"](function (err) {
|
||||||
src_core.warning("Codecov warning: " + err.message);
|
src_core.warning("Codecov warning: " + err.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
})["catch"](function (err) {
|
||||||
|
src_core.setFailed("Codecov failed with the following error: " + err.message);
|
||||||
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
||||||
13
src/index.ts
13
src/index.ts
|
|
@ -6,12 +6,7 @@ import buildExec from './buildExec';
|
||||||
const {failCi} = buildExec();
|
const {failCi} = buildExec();
|
||||||
|
|
||||||
exec.exec('bash', ['bash/linux', '-c'])
|
exec.exec('bash', ['bash/linux', '-c'])
|
||||||
.catch((err) => {
|
.then(() => {
|
||||||
core.setFailed(
|
|
||||||
`Codecov failed with the following error: ${err.message}`,
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
exec.exec('codecov-linux')
|
exec.exec('codecov-linux')
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
if (failCi) {
|
if (failCi) {
|
||||||
|
|
@ -22,3 +17,9 @@ exec.exec('codecov-linux')
|
||||||
core.warning(`Codecov warning: ${err.message}`);
|
core.warning(`Codecov warning: ${err.message}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
core.setFailed(
|
||||||
|
`Codecov failed with the following error: ${err.message}`,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue