add warning instead of fail condition

This commit is contained in:
ibrahim0814
2019-12-05 14:01:30 -08:00
parent fc0e9fde50
commit dd4242c61d
2 changed files with 8 additions and 8 deletions

8
dist/index.js vendored
View File

@@ -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();