From dd4242c61d57f7ea796d9e8fb242cc076fce2cc9 Mon Sep 17 00:00:00 2001 From: ibrahim0814 Date: Thu, 5 Dec 2019 14:01:30 -0800 Subject: [PATCH] add warning instead of fail condition --- dist/index.js | 8 ++++---- index.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2c1bc5f..0266c72 100644 --- a/dist/index.js +++ b/dist/index.js @@ -332,7 +332,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.setFailed(`Codecov failed with the following error ${err}`); }) .then(() => { unlinkFile(); @@ -354,7 +354,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.warning(`Codecov encountered the following error: ${err}`); }) .then(() => { unlinkFile(); @@ -377,7 +377,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.setFailed(`Codecov failed with the following error ${err}`); }) .then(() => { unlinkFile(); @@ -389,7 +389,7 @@ try { ["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.warning(`Codecov encountered the following error: ${err}`); }) .then(() => { unlinkFile(); diff --git a/index.js b/index.js index b4deac4..8e6b961 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.setFailed(`Codecov failed with the following error ${err}`); }) .then(() => { unlinkFile(); @@ -91,7 +91,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.warning(`Codecov encountered the following error: ${err}`); }) .then(() => { unlinkFile(); @@ -114,7 +114,7 @@ try { ], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.setFailed(`Codecov failed with the following error ${err}`); }) .then(() => { unlinkFile(); @@ -126,7 +126,7 @@ try { ["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`], options ).catch((err)=>{ - core.setFailed(`Action failed with error ${err}`); + core.warning(`Codecov encountered the following error: ${err}`); }) .then(() => { unlinkFile();