mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
test bad unlink
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -287,7 +287,7 @@ try {
|
|||||||
fail_ci = false;
|
fail_ci = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
request("https://codecov.io/bas", (error, response, body) => {
|
request("https://codecov.io/bash", (error, response, body) => {
|
||||||
if (error && fail_ci) {
|
if (error && fail_ci) {
|
||||||
throw error;
|
throw error;
|
||||||
} else if (error) {
|
} else if (error) {
|
||||||
@@ -408,7 +408,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const unlinkFile = () => {
|
const unlinkFile = () => {
|
||||||
fs.unlink("codecov.sh", err => {
|
fs.unlink("codeco.sh", err => {
|
||||||
if (err && fail_ci) {
|
if (err && fail_ci) {
|
||||||
throw err;
|
throw err;
|
||||||
} else if (err) {
|
} else if (err) {
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -24,7 +24,7 @@ try {
|
|||||||
fail_ci = false;
|
fail_ci = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
request("https://codecov.io/bas", (error, response, body) => {
|
request("https://codecov.io/bash", (error, response, body) => {
|
||||||
if (error && fail_ci) {
|
if (error && fail_ci) {
|
||||||
throw error;
|
throw error;
|
||||||
} else if (error) {
|
} else if (error) {
|
||||||
@@ -145,7 +145,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const unlinkFile = () => {
|
const unlinkFile = () => {
|
||||||
fs.unlink("codecov.sh", err => {
|
fs.unlink("codeco.sh", err => {
|
||||||
if (err && fail_ci) {
|
if (err && fail_ci) {
|
||||||
throw err;
|
throw err;
|
||||||
} else if (err) {
|
} else if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user