mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-12 22:17:24 +00:00
revert back to set failed
This commit is contained in:
parent
78d806df69
commit
f291e7ca9d
2 changed files with 8 additions and 20 deletions
14
dist/index.js
vendored
14
dist/index.js
vendored
|
|
@ -332,7 +332,7 @@ try {
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|
@ -353,10 +353,7 @@ try {
|
||||||
`${yml}`
|
`${yml}`
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).then(() => {
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -377,7 +374,7 @@ try {
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|
@ -388,10 +385,7 @@ try {
|
||||||
"bash",
|
"bash",
|
||||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).then(() => {
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
index.js
14
index.js
|
|
@ -69,7 +69,7 @@ try {
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|
@ -90,10 +90,7 @@ try {
|
||||||
`${yml}`
|
`${yml}`
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).then(() => {
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -114,7 +111,7 @@ try {
|
||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|
@ -125,10 +122,7 @@ try {
|
||||||
"bash",
|
"bash",
|
||||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).then(() => {
|
||||||
core.warning(`Codecov encountered the following error: ${err}`);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue