mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
add warning instead of fail condition
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -332,7 +332,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -354,7 +354,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.warning(`Codecov encountered the following error: ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -377,7 +377,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -389,7 +389,7 @@ try {
|
|||||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.warning(`Codecov encountered the following error: ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|||||||
8
index.js
8
index.js
@@ -69,7 +69,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -91,7 +91,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.warning(`Codecov encountered the following error: ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -114,7 +114,7 @@ try {
|
|||||||
],
|
],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
@@ -126,7 +126,7 @@ try {
|
|||||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||||
options
|
options
|
||||||
).catch((err)=>{
|
).catch((err)=>{
|
||||||
core.setFailed(`Action failed with error ${err}`);
|
core.warning(`Codecov encountered the following error: ${err}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user