From 75a54f4668ebd491609b92a73a2f3259cd5e631f Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 24 Jun 2021 16:08:51 -0400 Subject: [PATCH] Use dirname --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index e90cf28..9d7b971 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7673,7 +7673,7 @@ var exec = __nccwpck_require__(1514); var failCi = src_buildExec().failCi; exec.exec('bash', ['bash/linux', '-c']) .then(function () { - exec.exec('codecov-linux')["catch"](function (err) { + exec.exec(__dirname + 'codecov-linux')["catch"](function (err) { if (failCi) { src_core.setFailed("Codecov failed with the following error: " + err.message); } diff --git a/src/index.ts b/src/index.ts index 36338b2..490319e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ const {failCi} = buildExec(); exec.exec('bash', ['bash/linux', '-c']) .then(() => { - exec.exec('codecov-linux') + exec.exec(__dirname + 'codecov-linux') .catch((err) => { if (failCi) { core.setFailed(