mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
catch
This commit is contained in:
parent
2de41d00db
commit
d4e3df8475
2 changed files with 8 additions and 16 deletions
13
dist/index.js
vendored
13
dist/index.js
vendored
|
|
@ -34552,18 +34552,13 @@ try {
|
|||
fs.writeFileSync(filename_1, body);
|
||||
// TODO - validate step
|
||||
fs.chmodSync(filename_1, '777');
|
||||
try {
|
||||
exec.exec(filename_1, {
|
||||
stdio: ['pipe', process.stdout, process.stderr],
|
||||
});
|
||||
console.log('finished!');
|
||||
}
|
||||
catch (err) {
|
||||
exec.exec(filename_1, {
|
||||
stdio: ['pipe', process.stdout, process.stderr],
|
||||
})["catch"](function (err) {
|
||||
core.setFailed('Codecov: Failed to properly upload: ' +
|
||||
("" + err.message));
|
||||
return;
|
||||
}
|
||||
;
|
||||
});
|
||||
});
|
||||
}
|
||||
catch (err) {
|
||||
|
|
|
|||
11
src/index.ts
11
src/index.ts
|
|
@ -25,18 +25,15 @@ try {
|
|||
// TODO - validate step
|
||||
fs.chmodSync(filename, '777');
|
||||
|
||||
try {
|
||||
exec.exec(filename, {
|
||||
stdio: ['pipe', process.stdout, process.stderr],
|
||||
});
|
||||
console.log('finished!');
|
||||
} catch (err) {
|
||||
exec.exec(filename, {
|
||||
stdio: ['pipe', process.stdout, process.stderr],
|
||||
}).catch((err) => {
|
||||
core.setFailed(
|
||||
'Codecov: Failed to properly upload: ' +
|
||||
`${err.message}`,
|
||||
);
|
||||
return;
|
||||
};
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
core.setFailed(
|
||||
|
|
|
|||
Loading…
Reference in a new issue