run ncc build again

This commit is contained in:
ibrahim0814
2019-12-05 21:40:52 -08:00
parent ecf5f576a0
commit ab46201142

18
dist/index.js vendored
View File

@@ -291,14 +291,14 @@ try {
if (error && fail_ci) { if (error && fail_ci) {
throw error; throw error;
} else if (error) { } else if (error) {
core.warning(error); core.warning(`Codecov warning: ${error.message}`);
} }
fs.writeFile("codecov.sh", body, err => { fs.writeFile("codecov.sh", body, err => {
if (err && fail_ci) { if (err && fail_ci) {
throw err; throw err;
} else if (err) { } else if (err) {
core.warning(err); core.warning(`Codecov warning: ${err.message}`);
} }
let output = ""; let output = "";
@@ -366,9 +366,7 @@ try {
options options
) )
.catch(err => { .catch(err => {
core.warning( core.warning(`Codecov warning: ${err.message}`);
`Codecov error warning: ${err.message}`
);
}) })
.then(() => { .then(() => {
unlinkFile(); unlinkFile();
@@ -407,9 +405,7 @@ try {
options options
) )
.catch(err => { .catch(err => {
core.warning( core.warning(`Codecov warning: ${err.message}`);
`Codecov error warning: ${err.message}`
);
}) })
.then(() => { .then(() => {
unlinkFile(); unlinkFile();
@@ -422,7 +418,7 @@ try {
if (err && fail_ci) { if (err && fail_ci) {
throw err; throw err;
} else if (err) { } else if (err) {
core.warning(err); core.warning(`Codecov warning: ${err.message}`);
} }
}); });
}; };
@@ -430,9 +426,9 @@ try {
}); });
} catch (error) { } catch (error) {
if (fail_ci) { if (fail_ci) {
core.setFailed(error.message); core.setFailed(`Codecov failed with the following error: ${error.message}`);
} else { } else {
core.warning(error.message); core.warning(`Codecov warning: ${error.message}`);
} }
} }