revert back to set failed

This commit is contained in:
ibrahim0814
2019-12-05 16:05:56 -08:00
parent 78d806df69
commit f291e7ca9d
2 changed files with 8 additions and 20 deletions

14
dist/index.js vendored
View File

@@ -332,7 +332,7 @@ try {
],
options
).catch((err)=>{
core.warning(`Codecov encountered the following error: ${err}`);
core.setFailed(`Codecov failed with the following error ${err}`);
})
.then(() => {
unlinkFile();
@@ -353,10 +353,7 @@ try {
`${yml}`
],
options
).catch((err)=>{
core.warning(`Codecov encountered the following error: ${err}`);
})
.then(() => {
).then(() => {
unlinkFile();
});
}
@@ -377,7 +374,7 @@ try {
],
options
).catch((err)=>{
core.warning(`Codecov encountered the following error: ${err}`);
core.setFailed(`Codecov failed with the following error ${err}`);
})
.then(() => {
unlinkFile();
@@ -388,10 +385,7 @@ try {
"bash",
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
options
).catch((err)=>{
core.warning(`Codecov encountered the following error: ${err}`);
})
.then(() => {
).then(() => {
unlinkFile();
});
}