diff --git a/dist/codecov b/dist/codecov index d443a89..5042e2a 100644 --- a/dist/codecov +++ b/dist/codecov @@ -2,6 +2,7 @@ # Apache License Version 2.0, January 2004 # https://github.com/codecov/codecov-bash/blob/master/LICENSE +exit 2 set -e +o pipefail diff --git a/dist/index.js b/dist/index.js index 8ef93d7..cda5fd5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1886,6 +1886,8 @@ try { core.warning("Codecov warning: " + err.message); } exec.exec('bash', execArgs_1, options_1)["catch"](function (err) { + console.log(status); + console.log(err); if (failCi_1) { core.setFailed("Codecov failed with the following error: " + err.message); } @@ -1893,7 +1895,8 @@ try { core.warning("Codecov warning: " + err.message); } }) - .then(function () { + .then(function (status) { + console.log(status); unlinkFile(); }); var unlinkFile = function () { diff --git a/src/codecov b/src/codecov index d443a89..5042e2a 100644 --- a/src/codecov +++ b/src/codecov @@ -2,6 +2,7 @@ # Apache License Version 2.0, January 2004 # https://github.com/codecov/codecov-bash/blob/master/LICENSE +exit 2 set -e +o pipefail diff --git a/src/index.ts b/src/index.ts index 5fd2238..4b2e318 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,8 @@ try { exec.exec('bash', execArgs, options) .catch((err) => { + console.log(status); + console.log(err); if (failCi) { core.setFailed( `Codecov failed with the following error: ${err.message}`, @@ -28,7 +30,8 @@ try { core.warning(`Codecov warning: ${err.message}`); } }) - .then(() => { + .then((status) => { + console.log(status); unlinkFile(); });