mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-10 04:57:24 +00:00
remove pipe
This commit is contained in:
parent
d4e3df8475
commit
f4d4c99f20
2 changed files with 2 additions and 6 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -34552,9 +34552,7 @@ try {
|
||||||
fs.writeFileSync(filename_1, body);
|
fs.writeFileSync(filename_1, body);
|
||||||
// TODO - validate step
|
// TODO - validate step
|
||||||
fs.chmodSync(filename_1, '777');
|
fs.chmodSync(filename_1, '777');
|
||||||
exec.exec(filename_1, {
|
exec.exec(filename_1)["catch"](function (err) {
|
||||||
stdio: ['pipe', process.stdout, process.stderr],
|
|
||||||
})["catch"](function (err) {
|
|
||||||
core.setFailed('Codecov: Failed to properly upload: ' +
|
core.setFailed('Codecov: Failed to properly upload: ' +
|
||||||
("" + err.message));
|
("" + err.message));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,7 @@ try {
|
||||||
// TODO - validate step
|
// TODO - validate step
|
||||||
fs.chmodSync(filename, '777');
|
fs.chmodSync(filename, '777');
|
||||||
|
|
||||||
exec.exec(filename, {
|
exec.exec(filename).catch((err) => {
|
||||||
stdio: ['pipe', process.stdout, process.stderr],
|
|
||||||
}).catch((err) => {
|
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
'Codecov: Failed to properly upload: ' +
|
'Codecov: Failed to properly upload: ' +
|
||||||
`${err.message}`,
|
`${err.message}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue